devenv.com hangs in VS 2013

北城余情 提交于 2019-12-13 12:05:07

问题


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.


回答1:


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.




回答2:


Another fix we noticed and could reproduce every time is when our virtual machine in Hyper-V was given 2 CPUs, it would cause builds to hang every time. Reducing the VM to only have 1 CPU fixes the problem.




回答3:


We have solved this by creating a new .sln and adding existing projects to it. NuGet info is now revomed from the .csproj files and we now use "nuget.exe restore" to update NuGet packages before a call to devenv.com. This has fixed it for some projects.



来源:https://stackoverflow.com/questions/26059525/devenv-com-hangs-in-vs-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!