Unity 2018.3.0 mono bleeding edge xbuild fails to build a C# project.

Prior to Unity 2018, (Unity 5) I was able to build c# projects using the XBUILD.BAT in monobleedingedge folder included with Unity installation. Starting with Unity 2018.3.0, xbuild fails without any error messages. it simply says FAILED. anyone else has experienced this? I use xbuild.bat to build external tools.

I had this problem on windows also, csc.exe invocation was crashing with no error information, notice that unity’s .csproj have these properties defined:

    <CscToolPath>C:\Program Files\Unity\Hub\Editor\2019.2.15f1\Editor\Data\Tools\RoslynScripts</CscToolPath>
    <CscToolExe>unity_csc.bat</CscToolExe>

Adding those to your .csproj file might help, or you can set environment variables of the same name.