Visual Studio 2012 RTM 关闭后内存中有 MSBuild.exe [英] Visual Studio 2012 RTM has MSBuild.exe in memory after close

查看:25
本文介绍了Visual Studio 2012 RTM 关闭后内存中有 MSBuild.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到当 Visual Studio 2012 RTM 关闭时,许多 MsBuild.exe 实例仍在内存中.

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

为什么?

推荐答案

在 Visual Studio 关闭后,MSBuild 进程会继续运行一段时间(我相信是 15 分钟).这是一种提高性能的尝试,其想法是如果很快启动另一个构建,则可以重用空闲的 MSBuild 进程,并且可以消除生成新进程的开销.

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.

您可以通过设置环境变量 MSBUILDDISABLENODEREUSE=1 (在启动 VS 之前)或指定 /nodeReuse:false (或 /nr:false) 如果从命令行构建.

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.

在 MSConnect 上提交的相关问题:

Related issues filed on MSConnect:

这篇关于Visual Studio 2012 RTM 关闭后内存中有 MSBuild.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆