question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build leaves running dotnet.exe processes after it finishes (.csproj specific)

See original GitHub issue

Steps to reproduce

.csproj files attached buildleak.zip Enter c directory Open task manager/details view observe no dotnet.exe processes are running (clean test environment) run dotent build

Expected behavior

No dotnet.exe processes left

Actual behavior

dotnet.exe processes left

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json): Version: 2.1.300 Commit: adab45bf0c

Runtime Environment: OS Name: Windows OS Version: 10.0.17134 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.300\

Host (useful for support): Version: 2.1.0 Commit: caa7b7e2ba

.NET Core SDKs installed: 1.0.0 [C:\Program Files\dotnet\sdk] 1.0.1 [C:\Program Files\dotnet\sdk] 1.0.4 [C:\Program Files\dotnet\sdk] 1.1.0 [C:\Program Files\dotnet\sdk] 2.0.0 [C:\Program Files\dotnet\sdk] 2.1.200 [C:\Program Files\dotnet\sdk] 2.1.300 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:27 (5 by maintainers)

github_iconTop GitHub Comments

28reactions
livarcocccommented, Jun 11, 2018

This is by design in 2.1.300.

As part of our perf improvements, we introduced three persistent servers with the goal of reduce our JIT time. The servers are the razor compilation server, the vbcscompiler server and the msbuild node re-use server.

If you don’t want them staying around when you are done building, you can invoke dotnet build-server shutdown to turn them off.

If you don’t want them to start to begin with, you can set different properties/environment variables to prevent them from starting. From @peterhuene:

Use -p:UseRazorBuildServer=false to disable the Razor (rzc) server.

Use -p:UseSharedCompilation=false to disable the Roslyn (vbcscompiler) server.

For MSBuild, pass /nodeReuse:false on the command line to disable node re-use.
27reactions
jhudsoncedaroncommented, Jun 11, 2018

They’re causing spurious build failures due to holding locks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >
Unable to start process dotnet.exe
I look for dotnet.exe in that directory and it exists but debugger ... choose the Project Name instead of IISExpress when debugging/running.
Read more >
.NET | TeamCity On-Premises Documentation
Support of cross-platform MSBuild for .NET projects. Ability to build a project for a different platform specified in the Runtime field. Ability ...
Read more >
Bring Your .NET Apps Forward with the .NET Upgrade ...
This is important because, by design, Upgrade Assistant leaves many projects in a non-building state after it's finished executing (because it applies some...
Read more >
1. Solutions and Projects - Mastering Visual Studio .NET ...
Solutions are the containers for all your work in VS.NET. A solution contains a project for each build output. (For example, if you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found