37 references to BuildHostProcessKind
Microsoft.CodeAnalysis.Workspaces.MSBuild (24)
MSBuild\BuildHostProcessManager.cs (23)
30private readonly Dictionary<BuildHostProcessKind, BuildHostProcess> _processes = []; 54public async Task<(RemoteBuildHost buildHost, BuildHostProcessKind actualKind)> GetBuildHostWithFallbackAsync(BuildHostProcessKind buildHostKind, string projectOrSolutionFilePath, CancellationToken cancellationToken) 56if (buildHostKind == BuildHostProcessKind.Mono && MonoMSBuildDiscovery.GetMonoMSBuildDirectory() == null) 59buildHostKind = BuildHostProcessKind.NetCore; 67if (buildHostKind == BuildHostProcessKind.NetFramework) 73return (await GetBuildHostAsync(BuildHostProcessKind.NetCore, cancellationToken).ConfigureAwait(false), actualKind: BuildHostProcessKind.NetCore); 80public async Task<RemoteBuildHost> GetBuildHostAsync(BuildHostProcessKind buildHostKind, CancellationToken cancellationToken) 108internal ProcessStartInfo CreateBuildHostStartInfo(BuildHostProcessKind buildHostKind) 112BuildHostProcessKind.NetCore => CreateDotNetCoreBuildHostStartInfo(), 113BuildHostProcessKind.NetFramework => CreateDotNetFrameworkBuildHostStartInfo(), 114BuildHostProcessKind.Mono => CreateMonoBuildHostStartInfo(), 284public static BuildHostProcessKind GetKindForProject(string projectFilePath) 296var frameworkHostType = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? BuildHostProcessKind.NetFramework : BuildHostProcessKind.Mono; 311return BuildHostProcessKind.NetCore; 319return BuildHostProcessKind.NetCore; 323return BuildHostProcessKind.NetCore; 327return BuildHostProcessKind.NetCore; 331return BuildHostProcessKind.NetCore; 336return BuildHostProcessKind.NetCore;
MSBuild\MSBuildProjectLoader.Worker.cs (1)
178var 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)]