Visual Studio 2015 freezes when finished building

三世轮回 提交于 2020-01-02 01:13:07

问题


My copy of Visual Studio 2015 Community freezes/becomes unresponsive when it's trying to run a successful build, everything else operates as normal. If a build fails, VS operates as it should, giving me an output prompt.

Only when the Output states that the build's been successful, the IDE freezes with no response and even running the compiled .exe from the Debug folder freezes Win Explorer. All projects have been either C++ or C#.

OS: Windows 10, IDE's/Suites installed: VS2015 and Unity 5.2.1f1


回答1:


2 options:

  • are there any post-build events in your project?

  • disable the antivirus




回答2:


VS 2015 was hanging about half of the time when I would build a particular solution containing seven projects (four C# and one C++).

Under Tools/Options/Projects and Solutions/Build and Run, I changed the Maximum number of parallel project builds from 4 to 1.

This appears to have eliminated the problem.




回答3:


Seems like running Visual Studio as Administrator solved the problem for me. (For always running a program as Administrator see How to Run Visual Studio as Administrator by default)



来源:https://stackoverflow.com/questions/33675368/visual-studio-2015-freezes-when-finished-building

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