[Solved] Asp.Net Core 3.1 Visual Studio 2019 Error After Update: build failing with Error MSB6006: “csc.exe” exited with code 1

Question: How do you resolve the error "build failing with Error MSB6006: csc.exe exited with code 1"

Answer: There is a chance that this error happened after you had updated your Windows 10 Machine. If so, to resolve this error:

1. Restart your computer

2. Give your computer some time to finish its background task.

3. Then open up Visual Studio and continue with an attempt to load or build your application.

If the issue persists, make sure there are no other memory heavy applications running in the background, to do this, right-click on the Task Bar and open up Task Manager, observe for any Visual Studio or .Net Application currently updating. If you see any, just leave them to finish updating, on the other side, if you don't see any .Net or Visual Studio related processes and you see other application consuming memory then go ahead and End-Process (terminate process) by right-clicking on the Process and clicking on "End-Process".


Edit this Article
MSB6006: csc.exe exited with code 1 Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue

© 2021 - ErnesTech - Privacy