Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

devenv.com hangs in VS 2013

When calling devenv.com from command line or FinalBuilder action within our automated build it sometimes hangs and never gets past compiling step.

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

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

It hangs forever on this step. When I open it in VS 2013 and ReBuild the solution it works fine every time.

Any ideas? I've also tried it on other build machines and it does the same. So it is not machine dependent.

like image 614
Oliver Nilsen Avatar asked Sep 26 '14 12:09

Oliver Nilsen


People also ask

What does Devenv EXE do?

Devenv lets you set various options for the IDE, build projects, debug projects, and deploy projects from the command line.

How do I run Devenv EXE?

Press windows + r to open run window and then write "regedit" to open your PC registry. Then go to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> Currentversion -> App Paths -> devenv.exe. Click on devenv.exe and change the value of default .

What is the difference between MSBuild and Devenv?

Devenv uses MSBuild to build projects, but MSBuild does not build Visual C++ Projects. If MSBuild comes across a solution that includes Visual C++ projects, it will call VCBuild. If the projects are using C++, then MSBuild is not called.


1 Answers

After a lot of troubleshooting and looking through various logs, solutions, googling, I figured out that this is caused by the Extension Manager in Visual Studio 2013. You can find the extension manager in all Visual Studio version -> Tools -> Extensions and updates.

So by uninstalling the Nuget Package Manager from Visual Studio 2013, made it the solutions compile successfully every time.

like image 112
Oliver Nilsen Avatar answered Sep 18 '22 10:09

Oliver Nilsen