简体   繁体   中英

Visual Studio 2015 freezes when finished building

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

2 options:

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

  • disable the antivirus

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.

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 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM