StaticInit ScriptEngine after FileSystemWatcher

This commit is contained in:
Simon Lübeß
2026-09-12 15:18:01 +02:00
parent 1636f3a5d0
commit 9119613e62
@@ -81,6 +81,8 @@ class EngineClasses
}
}
// TODO: Init after FileSystemWatcher so that ScriptEngine's destructor runs before FSW's. The proper fix might be to not delete _userAssemblyWatcher in the static destructor...
[StaticInitAfter(typeof(FileSystemWatcher))]
static class ScriptEngine
{
// TODO: Maybe make it possible to set the path to ScriptCore just like for the script project?