sepluginloader / PluginLoader

A tool to load plugins for Space Engineers automatically.
https://sepluginloader.github.io/
MIT License
46 stars 11 forks source link

Specify language version #38

Closed Allen-Wrench closed 1 year ago

Allen-Wrench commented 1 year ago

Changing the CSharpOptions LanguageVersion from 'Latest' to 'CSharp7_3' adds the TargetFramework assembly attribute to the compiled plugin file specifying that it uses the .Net Framework version 4.8. Not super important, but without that it was causing dnSpy to load the latest .Net Core assemblies when I was trying to debug my plugins, which had weird side-effects. Nothing critical, feel free to ignore this if you want as this issue no longer affects me personally.

austinvaness commented 1 year ago

We can't limit the C# version of plugins. Maybe try adding TargetFrameworkAttribute to your plugin or something?