40 references to BuildHostProcessKind
Microsoft.CodeAnalysis.Workspaces.MSBuild (24)
MSBuild\BuildHostProcessManager.cs (23)
31private readonly Dictionary<BuildHostProcessKind, BuildHostProcess> _processes = []; 55public async Task<(RemoteBuildHost buildHost, BuildHostProcessKind actualKind)> GetBuildHostWithFallbackAsync(BuildHostProcessKind buildHostKind, string projectOrSolutionFilePath, CancellationToken cancellationToken) 57if (buildHostKind == BuildHostProcessKind.Mono && MonoMSBuildDiscovery.GetMonoMSBuildDirectory() == null) 60buildHostKind = BuildHostProcessKind.NetCore; 68if (buildHostKind == BuildHostProcessKind.NetFramework) 74return (await GetBuildHostAsync(BuildHostProcessKind.NetCore, cancellationToken).ConfigureAwait(false), actualKind: BuildHostProcessKind.NetCore); 81public async Task<RemoteBuildHost> GetBuildHostAsync(BuildHostProcessKind buildHostKind, CancellationToken cancellationToken) 110internal ProcessStartInfo CreateBuildHostStartInfo(BuildHostProcessKind buildHostKind, string pipeName) 114BuildHostProcessKind.NetCore => CreateDotNetCoreBuildHostStartInfo(pipeName), 115BuildHostProcessKind.NetFramework => CreateDotNetFrameworkBuildHostStartInfo(pipeName), 116BuildHostProcessKind.Mono => CreateMonoBuildHostStartInfo(pipeName), 289public static BuildHostProcessKind GetKindForProject(string projectFilePath) 301var frameworkHostType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? BuildHostProcessKind.NetFramework : BuildHostProcessKind.Mono; 316return BuildHostProcessKind.NetCore; 324return BuildHostProcessKind.NetCore; 328return BuildHostProcessKind.NetCore; 332return BuildHostProcessKind.NetCore; 336return BuildHostProcessKind.NetCore; 341return BuildHostProcessKind.NetCore;
MSBuild\MSBuildProjectLoader.Worker.cs (1)
178var 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)]