40 references to BuildHostProcessKind
Microsoft.CodeAnalysis.Workspaces.MSBuild (24)
MSBuild\BuildHostProcessManager.cs (23)
31
private readonly Dictionary<
BuildHostProcessKind
, BuildHostProcess> _processes = [];
55
public async Task<(RemoteBuildHost buildHost,
BuildHostProcessKind
actualKind)> GetBuildHostWithFallbackAsync(
BuildHostProcessKind
buildHostKind, string projectOrSolutionFilePath, CancellationToken cancellationToken)
57
if (buildHostKind ==
BuildHostProcessKind
.Mono && MonoMSBuildDiscovery.GetMonoMSBuildDirectory() == null)
60
buildHostKind =
BuildHostProcessKind
.NetCore;
68
if (buildHostKind ==
BuildHostProcessKind
.NetFramework)
74
return (await GetBuildHostAsync(
BuildHostProcessKind
.NetCore, cancellationToken).ConfigureAwait(false), actualKind:
BuildHostProcessKind
.NetCore);
81
public async Task<RemoteBuildHost> GetBuildHostAsync(
BuildHostProcessKind
buildHostKind, CancellationToken cancellationToken)
110
internal ProcessStartInfo CreateBuildHostStartInfo(
BuildHostProcessKind
buildHostKind, string pipeName)
114
BuildHostProcessKind
.NetCore => CreateDotNetCoreBuildHostStartInfo(pipeName),
115
BuildHostProcessKind
.NetFramework => CreateDotNetFrameworkBuildHostStartInfo(pipeName),
116
BuildHostProcessKind
.Mono => CreateMonoBuildHostStartInfo(pipeName),
289
public static
BuildHostProcessKind
GetKindForProject(string projectFilePath)
301
var
frameworkHostType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
BuildHostProcessKind
.NetFramework :
BuildHostProcessKind
.Mono;
316
return
BuildHostProcessKind
.NetCore;
324
return
BuildHostProcessKind
.NetCore;
328
return
BuildHostProcessKind
.NetCore;
332
return
BuildHostProcessKind
.NetCore;
336
return
BuildHostProcessKind
.NetCore;
341
return
BuildHostProcessKind
.NetCore;
MSBuild\MSBuildProjectLoader.Worker.cs (1)
178
var
preferredBuildHostKind = BuildHostProcessManager.GetKindForProject(projectPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (16)
BuildHostProcessManagerTests.cs (16)
20
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetCore, pipeName: "");
37
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetCore, pipeName: "");
46
.CreateBuildHostStartInfo(
BuildHostProcessKind
.Mono, pipeName: "");
55
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetFramework, pipeName: "");
61
[InlineData(
BuildHostProcessKind
.NetFramework)]
62
[InlineData(
BuildHostProcessKind
.NetCore)]
63
[InlineData(
BuildHostProcessKind
.Mono)]
81
[InlineData(
BuildHostProcessKind
.NetFramework)]
82
[InlineData(
BuildHostProcessKind
.NetCore)]
83
[InlineData(
BuildHostProcessKind
.Mono)]
101
[InlineData(
BuildHostProcessKind
.NetFramework)]
102
[InlineData(
BuildHostProcessKind
.NetCore)]
103
[InlineData(
BuildHostProcessKind
.Mono)]
122
[InlineData(
BuildHostProcessKind
.NetFramework)]
123
[InlineData(
BuildHostProcessKind
.NetCore)]
124
[InlineData(
BuildHostProcessKind
.Mono)]