37 references to BuildHostProcessKind
Microsoft.CodeAnalysis.Workspaces.MSBuild (24)
MSBuild\BuildHostProcessManager.cs (23)
30
private readonly Dictionary<
BuildHostProcessKind
, BuildHostProcess> _processes = [];
54
public async Task<(RemoteBuildHost buildHost,
BuildHostProcessKind
actualKind)> GetBuildHostWithFallbackAsync(
BuildHostProcessKind
buildHostKind, string projectOrSolutionFilePath, CancellationToken cancellationToken)
56
if (buildHostKind ==
BuildHostProcessKind
.Mono && MonoMSBuildDiscovery.GetMonoMSBuildDirectory() == null)
59
buildHostKind =
BuildHostProcessKind
.NetCore;
67
if (buildHostKind ==
BuildHostProcessKind
.NetFramework)
73
return (await GetBuildHostAsync(
BuildHostProcessKind
.NetCore, cancellationToken).ConfigureAwait(false), actualKind:
BuildHostProcessKind
.NetCore);
80
public async Task<RemoteBuildHost> GetBuildHostAsync(
BuildHostProcessKind
buildHostKind, CancellationToken cancellationToken)
108
internal ProcessStartInfo CreateBuildHostStartInfo(
BuildHostProcessKind
buildHostKind)
112
BuildHostProcessKind
.NetCore => CreateDotNetCoreBuildHostStartInfo(),
113
BuildHostProcessKind
.NetFramework => CreateDotNetFrameworkBuildHostStartInfo(),
114
BuildHostProcessKind
.Mono => CreateMonoBuildHostStartInfo(),
284
public static
BuildHostProcessKind
GetKindForProject(string projectFilePath)
296
var
frameworkHostType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ?
BuildHostProcessKind
.NetFramework :
BuildHostProcessKind
.Mono;
311
return
BuildHostProcessKind
.NetCore;
319
return
BuildHostProcessKind
.NetCore;
323
return
BuildHostProcessKind
.NetCore;
327
return
BuildHostProcessKind
.NetCore;
331
return
BuildHostProcessKind
.NetCore;
336
return
BuildHostProcessKind
.NetCore;
MSBuild\MSBuildProjectLoader.Worker.cs (1)
178
var
preferredBuildHostKind = BuildHostProcessManager.GetKindForProject(projectPath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (13)
BuildHostProcessManagerTests.cs (13)
20
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetCore);
37
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetCore);
46
.CreateBuildHostStartInfo(
BuildHostProcessKind
.Mono);
55
.CreateBuildHostStartInfo(
BuildHostProcessKind
.NetFramework);
61
[InlineData(
BuildHostProcessKind
.NetFramework)]
62
[InlineData(
BuildHostProcessKind
.NetCore)]
63
[InlineData(
BuildHostProcessKind
.Mono)]
81
[InlineData(
BuildHostProcessKind
.NetFramework)]
82
[InlineData(
BuildHostProcessKind
.NetCore)]
83
[InlineData(
BuildHostProcessKind
.Mono)]
102
[InlineData(
BuildHostProcessKind
.NetFramework)]
103
[InlineData(
BuildHostProcessKind
.NetCore)]
104
[InlineData(
BuildHostProcessKind
.Mono)]