Symptoms
When this issue occurs, the command line builds run longer than expected, and seem to freeze. It's because the process doesn't exit after the console output indicates that the build is complete.
Cause
This issue occurs because a handle from devenv.com is passed into a child process vshub.exe, and it causes devenv.com to remain open until vshub.exe terminates and releases the handle. Vshub.exe waits up to five minutes before it times out and exits.
Resolution
Install the following hotfix to fix the issue and prevent devenv.com from shutting down after a build is complete:Download the package now. For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to get Microsoft support files from online services Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.
Workaround
To work around this issue, use the following command line arguments before you execute devenv.com /build:
%COMMONPROGRAMFILES(x86)%\Microsoft Shared\VsHub\1.0.0.0\vshub.exe" EXECUTE -n vshub --console false