Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, November 18, 2019 9:04 AM
After update VS 17 to version 15.9.14 last day, I am facing build error only winform project. It show the error description "csc.exe" exited with code -1073741571 in build source in Error list pane.
In detail pane also show this msg:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets(52,5): error MSB6006: "csc.exe" exited with code -1073741571.
I can't run the project from last day.
More detail:
System is Windows10 x64 and run with Visual Studio Community 2017.
Best regards.
All replies (4)
Tuesday, November 19, 2019 2:32 AM ✅Answered
Hi GoodTekken,
Welcome to MSDN forum.
According to your description, I suggest you could go to your project path and check if this NuGet package: Microsoft.CodeAnalysis.FxCopAnalyzers v… exists.
If this NuGet package exists, please remove this NuGet package and check if this issue persists.
If not, then go to this path: C:\Users\user name]\nuget\packages and check if this NuGet package exists and remove it if you could find it.
If this issue still persists, according to this thread: Csc.exe exited with code -1073741819 (it’s an old thread but maybe helpful and you could refer to it) do you have more than one instance of VS running on your computer? If yes, try to stop it. Also check for other apps or services on your computer that may be accessing the files in your project (such as antivirus software).
You could try to reboot your computer and maybe try to start VS in Safe Mode via Developer Command Prompt for VS 2017 -> enter devenv /safemode and check if this issue persists.
Hope all above could help you.
Best Regards,
Tianyu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Tuesday, November 19, 2019 12:27 AM
I have tried to reinstall Visual Studio Community 2017, and still shows the same errors.
How could I do for this exception?
Tuesday, November 19, 2019 1:43 AM
And upgrade .net Framework to 4.8.0. but shows the same errors. Even just build("Hello World" ).
I can't move forward.
Wednesday, November 20, 2019 12:11 AM
It happened by the antivirus software. Thank you very much.