问题
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