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

查看:80
本文介绍了关闭后,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:

  • MSbuild proliferate
  • Ghost MSBuild.exe in VS11

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

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