Numerous instances of VBCSCompiler.exe

后端 未结 7 2091
北海茫月
北海茫月 2020-12-23 16:04

I just recently downloaded and installed Visual Studio Professional 2015 (14.0.23107.0). The first time I opened up our solution (28 projects) and performed a Build -> Rebui

7条回答
  •  北海茫月
    2020-12-23 16:52

    Any idea why there are so many of these tasks running?

    Roslyn uses a shared compiler process that keeps your compiled code in memory for reuse in subsequent compiles. So the second compile will be quicker, but as you've seen there's a memory overhead.

    Any way to stop this from happening?

    Yes. From here there's a property of the compile task in msbuild that turns off the shared compiler, and it's set to true by default.

    So in each project you'll have to add this property to the project file. Or in Visual Studio 2015 there's now shared projects, where you could add this property to the shared project and then include that shared project in all the other projects that need this setting.

    
      false
    
    

提交回复
热议问题