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)
1220collection.HostServices = new HostServices();
Microsoft.Build.Engine.UnitTests (46)
BackEnd\BuildManager_Tests.cs (13)
1155var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 2413var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2474var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2532var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2580var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2669var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2740new[] { "Build" }, new HostServices()); 2837new[] { "Build" }, new HostServices()); 2937new[] { "Build" }, new HostServices()); 3023new[] { "Build" }, new HostServices()); 3092new[] { "Build" }, new HostServices()); 3374var services = new HostServices(); 3557var 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)
465var 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) 2438internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache, HostServices hostServices) 2441ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(HostServices)} is already set. Cannot set again");
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
321HostServices hostServices,
Instance\TaskFactories\TaskHostTask.cs (2)
149private readonly HostServices _hostServices; 175HostServices hostServices,
TaskHostConfiguration.cs (3)
98private HostServices _hostServices; 168HostServices hostServices, 308public HostServices HostServices
Microsoft.Build.Engine.UnitTests (39)
BackEnd\BuildManager_Tests.cs (2)
3374var services = new HostServices(); 3557var 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)
465var hostServices = new HostServices(); 949private static ProjectInstance GetProjectInstance(string content, HostServices hostServices) 957private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 986private static ProjectInstance GetSampleProjectInstance(HostServices hostServices) 994private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
MSBuild (5)
OutOfProcTaskAppDomainWrapperBase.cs (2)
59private HostServices _hostServices; 109HostServices hostServices,
TaskHostConfiguration.cs (3)
98private HostServices _hostServices; 168HostServices hostServices, 308public HostServices HostServices