NotepadPlusPlusPluginPack.Net
NotepadPlusPlusPluginPack.Net copied to clipboard
.Net 6 based plugin
Hi all!
I started revamping a legacy plugin written in .Net full framework v4.8 to the new .Net 6. After implementing all interfaces isUnicode
, setInfo
, getFuncsArray
, messageProc
, getName
and beNotified
it still throws an unhandled and too generic error from npp Failed to load
. I’m developing and testing in the same machine, so I assume .Net 6 runtime is installed and available. Is there any trick to support .Net “Core” or only the plugins developed under .Net full framework are supported?
https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports is used (see https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/tree/master/Visual%20Studio%20Project%20Template%20C%23/PluginInfrastructure/DllExports) and that is not available for .Net Core. Maybe with the help of https://github.com/3F/DllExport it could be achieved that the .Net 6 code is accessible from unmanaged code.