With MSBuild.exe, I can set the SharedCompilationId property and later run VBCSCompiler.exe -pipename:"$(SharedCompilationId)" -shutdown to terminate only the Roslyn compiler server that was started for this ID. Is there an equivalent feature for dotnet build-server shutdown?
It looks like the DOTNET_BUILD_PIDFILE_DIRECTORY environment variable could be used for something like that:
|
public const string PidFileDirectoryVariableName = "DOTNET_BUILD_PIDFILE_DIRECTORY"; |
However, from #9302 and #9303, it seems the environment variable is not used by all build servers; and even if they use it for PID files, they might not use it for the actual communication.