CompilerParameters not found in System.CodeDom.Compiler
Hey folks,
I am trying to use YieldProlog in my project but I am having a rather peculiar issue. Although I am using the namespace System.CodeDom.Compiler and my references include, obviously, the System.dll, CompilerParameters appears as unavailable (non existent) in my project.
Even in the object browser, System.CodeDom.Compiler has only a GeneratedCodeAttribute method, and nothing else.
Any pointers or ideas? I already attempted to move all the source throughout different folders such as Library, Plugins etc... nothing.
The message is clear, the problem is not:
"The type or namespace name "CompilerParameters" could not be found"
Answer by fer-geraci · Jul 03, 2017 at 05:34 PM
Hey folks, for whoever is in need or have similar issues with default .NET services; just change the compatibility level of the project from ".NET 2.0 Subset" to ".NET 2.0"
Edit > Project Settings > Player > Configuration - API Compatibility lvl.