I configured a valid empty plugin project, and added ICSharpCode.SharpZipLib (for .Net 6.0, 7.0 compatible) as adding
options.ScriptingAPI.FileReferences.Add(Path.Combine(FolderPath, “…”, “…”, “Content”, “ICSharpCode.SharpZipLib.dll”));
to plugin’s Build.cs.
With barebone plugin code editor loaded fine, but after adding
ZipFile archive
Engine could not load the editor and crashed with messagebox
Error
Unhandled exception: 0xe0434352
and log of KERNELBASE crash of
[ 00:00:04.095 ]: [Error] Critical error! Reason: Unhandled exception: 0xe0434352
[ 00:00:04.101 ]: [Error] Stack trace:
[ 00:00:04.101 ]: [Error] at KERNELBASE.dll 0x7ffed0f44fd9
[ 00:00:04.101 ]: [Error] at 0x7ffe906f2f4c
[ 00:00:04.101 ]: [Error] at 0x276b3c15cb0
[ 00:00:04.101 ]: [Error] at 0xbec70fb930
[ 00:00:04.101 ]: [Error] at 0x17f
Interestingly, when I loaded project “before adding code of ZipFile” and edited the plugin source code, hot reloader compiled fine and did not crash on the go. Editor only crashed when ‘starting’ with already added code.