When trying to compile my WebGL project, I get this error:>error CS1069: The type name 'CodeCompileUnit' could not be found in the namespace 'System.CodeDom'. This type has been forwarded to assembly 'System.CodeDom, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Consider adding a reference to that assembly.
----------
I have already tried changing Scripting Runtime Version and API Compatibility Level to 4.x, but I still cannot compile my project. I think I read somewhere that SystemCodeDom is NOT included for WebGL because there is no way to make dynamic code generation work on WebGL.
https://answers.unity.com/questions/58931/problem-with-systemcodedom-in-c.html
The project actually compiles fine on **Android** and **iOS**.
----------
My questions are:
1. **Is it possible to manually add System.CodeDom directly to a WebGL project**?
2. **Where can I see all the possible System namespaces that can be used for WebGL**?
↧