48 instantiations of HostServices
Microsoft.Build (1)
Definition\ProjectCollection.cs (1)
797_hostServices = new HostServices();
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\ProjectCollection_Tests.cs (1)
1219collection.HostServices = new HostServices();
Microsoft.Build.Engine.UnitTests (46)
BackEnd\BuildManager_Tests.cs (13)
1154var 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(); 3556var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (3)
175var hostServices = new HostServices(); 222var hostServices = new HostServices(); 261var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
828hostServices = new HostServices();
Instance\HostServices_Tests.cs (28)
40HostServices hostServices = new HostServices(); 61HostServices hostServices = new HostServices(); 74HostServices hostServices = new HostServices(); 87HostServices hostServices = new HostServices(); 98HostServices hostServices = new HostServices(); 113HostServices hostServices = new HostServices(); 123HostServices hostServices = new HostServices(); 135HostServices hostServices = new HostServices(); 151HostServices hostServices = new HostServices(); 162HostServices hostServices = new HostServices(); 183HostServices hostServices = new HostServices(); 197HostServices hostServices = new HostServices(); 218HostServices hostServices = new HostServices(); 233HostServices hostServices = new HostServices(); 248HostServices hostServices = new HostServices(); 259HostServices hostServices = new HostServices(); 275HostServices hostServices = new HostServices(); 287HostServices hostServices = new HostServices(); 301HostServices hostServices = new HostServices(); 314HostServices hostServices = new HostServices(); 326HostServices hostServices = new HostServices(); 339HostServices hostServices = new HostServices(); 353HostServices hostServices = new HostServices(); 369HostServices hostServices = new HostServices(); 389HostServices hostServices = new HostServices(); 405HostServices hostServices = new HostServices(); 424HostServices hostServices = new HostServices(); 448var hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (1)
464var hostServices = new HostServices();
87 references to HostServices
Microsoft.Build (43)
BackEnd\BuildManager\BuildParameters.cs (1)
505public HostServices HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
33public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices) 45public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 58public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer) 87public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState) 104public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices) 120string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, 138public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 156private BuildRequestData(string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, string projectFullPath) 237public new HostServices? HostServices => base.HostServices;
BackEnd\BuildManager\BuildRequestDataBase.cs (3)
14HostServices? hostServices) 50public HostServices? HostServices { get; } 60HostServices? hostServices)
BackEnd\Shared\BuildRequest.cs (5)
108HostServices hostServices, 147HostServices hostServices, 180HostServices hostServices, 382internal HostServices HostServices 389private HostServices _hostServices;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
234private HostServices _hostServices; 274HostServices hostServices,
Definition\ProjectCollection.cs (2)
139private HostServices _hostServices; 781public HostServices HostServices
Graph\GraphBuildRequestData.cs (11)
44public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices) 56public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 71public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices? hostServices) 84public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 105public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices? hostServices) 117public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 138public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices) 150public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 158public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions) 169private GraphBuildRequestData(ICollection<string> targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, GraphBuildOptions? graphBuildOptions = null) 252public new HostServices? HostServices => base.HostServices;
Instance\ProjectInstance.cs (4)
170private HostServices _hostServices; 673internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 2454internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache, HostServices hostServices) 2457ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(HostServices)} is already set. Cannot set again");
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
314HostServices hostServices,
Instance\TaskFactories\TaskHostTask.cs (2)
150private readonly HostServices _hostServices; 176HostServices hostServices,
TaskHostConfiguration.cs (3)
98private HostServices _hostServices; 168HostServices hostServices, 308public HostServices HostServices
Microsoft.Build.Engine.UnitTests (39)
BackEnd\BuildManager_Tests.cs (2)
3373var services = new HostServices(); 3556var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (3)
175var hostServices = new HostServices(); 222var hostServices = new HostServices(); 261var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
824HostServices hostServices = null;
Instance\HostServices_Tests.cs (28)
40HostServices hostServices = new HostServices(); 61HostServices hostServices = new HostServices(); 74HostServices hostServices = new HostServices(); 87HostServices hostServices = new HostServices(); 98HostServices hostServices = new HostServices(); 113HostServices hostServices = new HostServices(); 123HostServices hostServices = new HostServices(); 135HostServices hostServices = new HostServices(); 151HostServices hostServices = new HostServices(); 162HostServices hostServices = new HostServices(); 183HostServices hostServices = new HostServices(); 197HostServices hostServices = new HostServices(); 218HostServices hostServices = new HostServices(); 233HostServices hostServices = new HostServices(); 248HostServices hostServices = new HostServices(); 259HostServices hostServices = new HostServices(); 275HostServices hostServices = new HostServices(); 287HostServices hostServices = new HostServices(); 301HostServices hostServices = new HostServices(); 314HostServices hostServices = new HostServices(); 326HostServices hostServices = new HostServices(); 339HostServices hostServices = new HostServices(); 353HostServices hostServices = new HostServices(); 369HostServices hostServices = new HostServices(); 389HostServices hostServices = new HostServices(); 405HostServices hostServices = new HostServices(); 424HostServices hostServices = new HostServices(); 448var hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (5)
464var hostServices = new HostServices(); 948private static ProjectInstance GetProjectInstance(string content, HostServices hostServices) 956private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 985private static ProjectInstance GetSampleProjectInstance(HostServices hostServices) 993private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
MSBuild (5)
OutOfProcTaskAppDomainWrapperBase.cs (2)
60private HostServices _hostServices; 110HostServices hostServices,
TaskHostConfiguration.cs (3)
98private HostServices _hostServices; 168HostServices hostServices, 308public HostServices HostServices