Visual Studio 2012 RTM has MSBuild.exe in memory a

2020-02-08 10:54发布

I noticed when Visual Studio 2012 RTM was closed, that many instances of MsBuild.exe are still in memory.

Why ?

2条回答
一纸荒年 Trace。
2楼-- · 2020-02-08 11:23

You can turn off the parallel build feature in visual studio. How to: Set the Number of Concurrent Builds for Multiprocessor Builds

查看更多
乱世女痞
3楼-- · 2020-02-08 11:44

The MSBuild processes are kept running for a period of time (fifteen minutes, I believe) after Visual Studio is closed. This is an attempt to improve performance, the idea being that idle MSBuild processes could be reused if another build is kicked off soon and the overhead of spawning a new process can be eliminated.

You can disable this by setting an environment variable MSBUILDDISABLENODEREUSE=1 (before starting VS) or specifying /nodeReuse:false (or /nr:false) if building from the command line.

Related issues filed on MSConnect:

查看更多
登录 后发表回答