Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

.Net 6 based plugin #99

Open
gandarez opened this issue Nov 30, 2022 · 1 comment
Open

.Net 6 based plugin #99

gandarez opened this issue Nov 30, 2022 · 1 comment

Comments

@gandarez
Copy link
Contributor

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?

@chcg
Copy link
Contributor

chcg commented Feb 15, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants