Additional context
The BuiltIn Compiler worked perfect in Unity Editor for MacOs.
Suggest solution
Change the Setup function inside CompilerInfo to this:
I changed the Path to "\"" + Path + "\"" to avoid problem with Windows file path since C:\Program Files\Unity\Hub\Editor\2021.2.11f1\Editor\Data\DotNetSdkRoslyn\csc.dll has space in the path string.
I also found that CustomCompiler_2021 need to change in this function
private string GetOutDir(string dagName)
{
if (dagName.EndsWith("E")) return "Library/ScriptAssemblies";
var unityVersions = Application.unityVersion.Split('.');
if (int.Parse(unityVersions[0]) == 2021)
//return "Library/PlayerScriptAssemblies";
return "Library/ScriptAssemblies";
else
return "Library/Bee/PlayerScriptAssemblies";
}
since the Library/PlayerScriptAssemblies was not found.
NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Environment
Additional context The BuiltIn Compiler worked perfect in Unity Editor for MacOs. Suggest solution Change the Setup function inside CompilerInfo to this:
I changed the
Path
to"\"" + Path + "\""
to avoid problem with Windows file path sinceC:\Program Files\Unity\Hub\Editor\2021.2.11f1\Editor\Data\DotNetSdkRoslyn\csc.dll
has space in the path string.I also found that
CustomCompiler_2021
need to change in this functionsince the
Library/PlayerScriptAssemblies
was not found.