Search code examples
c#.netvisual-studioroslyncsc

csc.exe exited with code -2146232797 vs 2017


I have error in my project on time of build csc.exe exited with code -2146232797 visual studio 2017(Professional) in other Team's computer project building and running fine, so I not want to update nuget compiler, Is there any permanent solutions there?


Solution

  • This issue happened for some people with vs 2017. you need to reinstall .net via

    microsoft site

    as requested and if the above link does not help, there is a thread in visual studio development community stating they fixed the issue in visual studio 2017 v15.5:

    We have fixed this issue and it's available in Visual Studio 2017 version 15.5. Thank you for helping us build a better Visual Studio!

    more over, there is another solution stating:

    using the 2.2 compiler made the problem go away.