mcs-ICodeCompiler
mcs-ICodeCompiler copied to clipboard
Building On Unity 2017
Assets/CSharpCompiler/CodeCompiler.cs(17,33): error CS0246: The type or namespace name `ICodeCompiler' could not be found. Are you missing an assembly reference?
The same for CompilerResults and CompilerParameters, both cannot be found.
It seems the Unity 2017 changed it's .NET classes, they removed ICodeCompiler and all related classes.
Sorry to ask the dumb unresearched question but... can this be worked-around? Perhaps by adding missing class(es) to a/the separate DLL?
Yes yes, I'm working on it.
(sorry! Thanks :) )
Hey, sorry to pester but... any progress? Thx :)
It still works (in 2018 beta at least) if you change the compatibility level of the project from ".NET 2.0 Subset" to ".NET 2.0" Edit > Project Settings > Player > Configuration - API Compatibility lvl. (found at https://answers.unity.com/questions/1373258/compilerparameters-not-found-in-systemcodedomcompi.html)
In 2017.4.8 works fine if you change the compatibility level of the project from ".NET 2.0 Subset" to ".NET 2.0".
Duh sorry about this, I don't plan on fixing this. If anyone wants, feel free to fix and create pull request. If I were to work on this, I would probably use Roslyn instead.