Devenv.com hangs in VS 2013

When you call devenv.com from the command line or the FinalBuilder action in our automatic build, it sometimes freezes and never passes the compilation stage.

It is called using these parameters from C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \ IDE:

devenv.com /build "Release|Any CPU" "D:\MyProject\MySolution.sln" 

At this step, he always hangs. When I open it in VS 2013 and ReBuild, this solution works great every time.

Any ideas? I also tried this on other build machines, and it does the same. Therefore, it is independent of the machine.

+6
source share
3 answers

After many troubleshooting and viewing various logs, solutions, and Google searches, I realized that this was caused by the extension manager in Visual Studio 2013. You can find the extension manager in all versions of Visual Studio → Tools → Extensions and Updates.

Thus, by removing the Nuget Package Manager from Visual Studio 2013, he built solutions every time.

+3
source

Another fix that we noticed and that can be reproduced every time is when our virtual machine in Hyper-V received 2 processors, this will lead to the fact that assemblies will freeze every time. By reducing the VM, only 1 processor corrects the problem.

+1
source

We solved this by creating a new .sln and adding existing projects to it. NuGet information is now updated from .csproj files, and now we use "restore nuget.exe" to update NuGet packages before calling devenv.com. This fixed it for some projects.

0
source

Source: https://habr.com/ru/post/975881/


All Articles