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.
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.
Install the following hotfix to fix the issue and prevent devenv.com from shutting down after a build is complete:
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.
To work around this issue, use the following command line arguments before you execute devenv.com /build:
Visual Studio Professional 2015, Visual Studio Community Edition 2015, Visual Studio Express 2015 for Desktop, Visual Studio Express 2015 for Web, Visual Studio Express 2015 for Windows 10, Visual Studio Enterprise 2015