VS 2015 Update 3 vbcscompiler.exe using the entire processor

I have a version of Visual Studio 2015 version 14.0.25431.01 3. When I work with my solution, it accidentally starts using the entire processor. Sometimes, when I'm not on the VS window or just typing in code.

If I open the task manager, I will see that vbcscompiler.exe uses 90-100% of the processor. I have an Intel Core i7 2.7GHz with 8 cores, I think he can handle it without any problems.

It freezes my computer, and I can’t do anything in 10-20 seconds, which is very unpleasant.

Does anyone know what the problem is?

-------------- 4/12/2017 UPDATE --------------

A single instance of vbcscompiler.exe is running . It happens with Windows Service; Web service Console application. Big and small solutions.

See screenshot of task manager below. enter image description here

+6
source share
1 answer

I just did something on this issue. The root cause seems to be a new Roslyn compiler feature in which it saves the compiler process after the build is complete. Over time, memory consumption accumulates, and as far as I can tell, nothing that actually kills the compiler, even when its host process ends.

, VS - , , IDE .

. , XML . , , , , , :

<PropertyGroup>
    <UseSharedCompilation>false</UseSharedCompilation>
</PropertyGroup>

, .

, :

VBCSCompiler.exe

-1

Source: https://habr.com/ru/post/1016143/


All Articles