14 references to RuntimeHostInfo
Microsoft.Build.Tasks.CodeAnalysis.Sdk (14)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (8)
60
internal static bool IsBuiltinToolRunningOnCoreClr =>
RuntimeHostInfo
.IsCoreClrRuntime || IsSdkFrameworkToCoreBridgeTask;
111
commandLineArguments =
RuntimeHostInfo
.GetDotNetExecCommandLine(PathToBuiltInTool, commandLineArguments);
158
return UseAppHost ? PathToBuiltInTool :
RuntimeHostInfo
.GetDotNetPathOrDefault();
255
if (
RuntimeHostInfo
.GetToolDotNetRoot(Log.LogMessage) is { } dotNetRoot)
257
Log.LogMessage("Setting {0} to '{1}'",
RuntimeHostInfo
.DotNetRootEnvironmentName, dotNetRoot);
260
.. EnvironmentVariables?.Where(static e => !e.StartsWith(
RuntimeHostInfo
.DotNetRootEnvironmentName, StringComparison.OrdinalIgnoreCase)) ?? [],
262
.Where(e => ((string)e.Key).StartsWith(
RuntimeHostInfo
.DotNetRootEnvironmentName, StringComparison.OrdinalIgnoreCase))
264
$"{
RuntimeHostInfo
.DotNetRootEnvironmentName}={dotNetRoot}",
src\Compilers\Shared\BuildServerConnection.cs (6)
442
commandLineArgs =
RuntimeHostInfo
.GetDotNetExecCommandLine(Path.ChangeExtension(processFilePath, ".dll"), commandLineArgs);
443
processFilePath =
RuntimeHostInfo
.GetDotNetPathOrDefault();
486
if (
RuntimeHostInfo
.GetToolDotNetRoot(logger is null ? null : logger.Log) is not { } dotNetRoot)
500
if (key.StartsWith(
RuntimeHostInfo
.DotNetRootEnvironmentName, StringComparison.OrdinalIgnoreCase))
511
environmentVariables[
RuntimeHostInfo
.DotNetRootEnvironmentName] = dotNetRoot;
513
logger?.Log("Setting {0} to '{1}'",
RuntimeHostInfo
.DotNetRootEnvironmentName, dotNetRoot);