47 instantiations of HostServices
Microsoft.Build (1)
Definition\ProjectCollection.cs (1)
735_hostServices = new HostServices();
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\ProjectCollection_Tests.cs (1)
1219collection.HostServices = new HostServices();
Microsoft.Build.Engine.UnitTests (45)
BackEnd\BuildManager_Tests.cs (13)
1155var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 2412var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2473var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2531var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2579var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2668var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2739new[] { "Build" }, new HostServices()); 2836new[] { "Build" }, new HostServices()); 2936new[] { "Build" }, new HostServices()); 3022new[] { "Build" }, new HostServices()); 3091new[] { "Build" }, new HostServices()); 3373var services = new HostServices(); 3513var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
146var hostServices = new HostServices(); 185var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
816hostServices = new HostServices();
Instance\HostServices_Tests.cs (28)
41HostServices hostServices = new HostServices(); 62HostServices hostServices = new HostServices(); 75HostServices hostServices = new HostServices(); 88HostServices hostServices = new HostServices(); 99HostServices hostServices = new HostServices(); 114HostServices hostServices = new HostServices(); 124HostServices hostServices = new HostServices(); 136HostServices hostServices = new HostServices(); 152HostServices hostServices = new HostServices(); 163HostServices hostServices = new HostServices(); 184HostServices hostServices = new HostServices(); 198HostServices hostServices = new HostServices(); 219HostServices hostServices = new HostServices(); 234HostServices hostServices = new HostServices(); 249HostServices hostServices = new HostServices(); 260HostServices hostServices = new HostServices(); 276HostServices hostServices = new HostServices(); 288HostServices hostServices = new HostServices(); 302HostServices hostServices = new HostServices(); 315HostServices hostServices = new HostServices(); 327HostServices hostServices = new HostServices(); 340HostServices hostServices = new HostServices(); 354HostServices hostServices = new HostServices(); 370HostServices hostServices = new HostServices(); 390HostServices hostServices = new HostServices(); 406HostServices hostServices = new HostServices(); 425HostServices hostServices = new HostServices(); 449var hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (1)
466var hostServices = new HostServices();
73 references to HostServices
Microsoft.Build (35)
BackEnd\BuildManager\BuildParameters.cs (1)
478public HostServices HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
39public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices) 51public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 64public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer) 93public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState) 110public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices) 126string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, 144public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 162private BuildRequestData(string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, string projectFullPath) 243public new HostServices? HostServices => base.HostServices;
BackEnd\BuildManager\BuildRequestDataBase.cs (3)
14HostServices? hostServices) 50public HostServices? HostServices { get; } 60HostServices? hostServices)
BackEnd\Shared\BuildRequest.cs (5)
106HostServices hostServices, 145HostServices hostServices, 178HostServices hostServices, 380internal HostServices HostServices 387private HostServices _hostServices;
Definition\ProjectCollection.cs (2)
138private HostServices _hostServices; 719public HostServices HostServices
Graph\GraphBuildRequestData.cs (11)
43public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices) 55public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 70public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices? hostServices) 83public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 104public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices? hostServices) 116public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 137public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices) 149public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 157public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions) 168private GraphBuildRequestData(ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, GraphBuildOptions? graphBuildOptions = null) 251public new HostServices? HostServices => base.HostServices;
Instance\ProjectInstance.cs (4)
163private HostServices _hostServices; 641internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 2344internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache, HostServices hostServices) 2347ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(HostServices)} is already set. Cannot set again");
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildManager_Tests.cs (2)
3373var services = new HostServices(); 3513var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
146var hostServices = new HostServices(); 185var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
812HostServices hostServices = null;
Instance\HostServices_Tests.cs (28)
41HostServices hostServices = new HostServices(); 62HostServices hostServices = new HostServices(); 75HostServices hostServices = new HostServices(); 88HostServices hostServices = new HostServices(); 99HostServices hostServices = new HostServices(); 114HostServices hostServices = new HostServices(); 124HostServices hostServices = new HostServices(); 136HostServices hostServices = new HostServices(); 152HostServices hostServices = new HostServices(); 163HostServices hostServices = new HostServices(); 184HostServices hostServices = new HostServices(); 198HostServices hostServices = new HostServices(); 219HostServices hostServices = new HostServices(); 234HostServices hostServices = new HostServices(); 249HostServices hostServices = new HostServices(); 260HostServices hostServices = new HostServices(); 276HostServices hostServices = new HostServices(); 288HostServices hostServices = new HostServices(); 302HostServices hostServices = new HostServices(); 315HostServices hostServices = new HostServices(); 327HostServices hostServices = new HostServices(); 340HostServices hostServices = new HostServices(); 354HostServices hostServices = new HostServices(); 370HostServices hostServices = new HostServices(); 390HostServices hostServices = new HostServices(); 406HostServices hostServices = new HostServices(); 425HostServices hostServices = new HostServices(); 449var hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (5)
466var hostServices = new HostServices(); 950private static ProjectInstance GetProjectInstance(string content, HostServices hostServices) 958private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 987private static ProjectInstance GetSampleProjectInstance(HostServices hostServices) 995private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)