47 instantiations of HostServices
Microsoft.Build (1)
Definition\ProjectCollection.cs (1)
740_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)
1154var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 2411var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2472var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2530var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2578var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2667var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2738new[] { "Build" }, new HostServices()); 2835new[] { "Build" }, new HostServices()); 2935new[] { "Build" }, new HostServices()); 3021new[] { "Build" }, new HostServices()); 3090new[] { "Build" }, new HostServices()); 3372var services = new HostServices(); 3512var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
145var hostServices = new HostServices(); 184var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
815hostServices = 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();
73 references to HostServices
Microsoft.Build (35)
BackEnd\BuildManager\BuildParameters.cs (1)
490public HostServices HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
32public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices) 44public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 57public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer) 86public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState) 103public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices) 119string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, 137public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags) 155private BuildRequestData(string[] targetsToBuild, HostServices? hostServices, BuildRequestDataFlags flags, string projectFullPath) 236public 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; 724public 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)
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)
3372var services = new HostServices(); 3512var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
145var hostServices = new HostServices(); 184var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
811HostServices 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)