Random VSTS build errors - process "msbuild.exe" terminated with code "-1".

I have an average ASP.NET MVC4 solution with about 15 projects in it. I used the paid Hosted Pipeline (VS 2017) in VSTS for my builds. Although I keep getting the error below, arbitrarily in the build or package steps. Run the assembly again and it will pass without any changes in the source code! No other errors, detailed errors are displayed in the build log. And this happens by chance in any of the projects in the solution. Any idea what could be causing this or how to get more error information to avoid this?

[error] The process "msbuild.exe" terminated with the code "-1".

+8
vsts-build
source share
2 answers

We have finally identified the problem and are working on deploying an updated image with mitigation. It turns out that the automatic update feature for VSIX extensions works like a scheduled task on Windows. When this process starts, it will complete the entire process for executable files that exist in the Visual Studio installation directory. We deploy an image that disables this scheduled task. I appreciate patience as we have worked to solve this problem.

+1
source share

Microsoft is researching this right now . This seems to be related to another problem, which also causes a crash.

A temporary suggestion on a workaround (I have not tried this myself), as reported in this thread:

For temporary work, if you added a second vsbuild task right after the first and determined that the first will continue the error, it seems to be completed successfully within 100% of the time.

+2
source share

All Articles