NotepadPlusPlusPluginPack.Net icon indicating copy to clipboard operation
NotepadPlusPlusPluginPack.Net copied to clipboard

.Net 6 based plugin

Open gandarez opened this issue 2 years ago • 1 comments

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?

gandarez avatar Nov 30 '22 12:11 gandarez

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.

chcg avatar Feb 15 '23 04:02 chcg