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)
1214collection.HostServices = new HostServices();
Microsoft.Build.Engine.UnitTests (45)
BackEnd\BuildManager_Tests.cs (13)
1137var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new HostServices()); 2347var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2408var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2466var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2514var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2603var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2674new[] { "Build" }, new HostServices()); 2771new[] { "Build" }, new HostServices()); 2871new[] { "Build" }, new HostServices()); 2957new[] { "Build" }, new HostServices()); 3026new[] { "Build" }, new HostServices()); 3308var services = new HostServices(); 3448var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
146var hostServices = new HostServices(); 185var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
815hostServices = 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)
458var hostServices = new HostServices();
70 references to HostServices
Microsoft.Build (32)
BackEnd\BuildManager\BuildParameters.cs (1)
478public HostServices HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
110public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices) 122public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 135public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, IEnumerable<string> propertiesToTransfer) 165public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, IEnumerable<string> propertiesToTransfer, RequestedProjectState requestedProjectState) 182public BuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, string toolsVersion, string[] targetsToBuild, HostServices hostServices) 198string toolsVersion, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, 216public BuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, string toolsVersion, string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 235private BuildRequestData(string[] targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 285public HostServices HostServices { get; }
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)
41public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices hostServices) 53public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 68public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices hostServices) 81public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 102public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices hostServices) 114public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 135public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices) 147public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags) 155public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions) 166private GraphBuildRequestData(ICollection<string> targetsToBuild, HostServices hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions = null) 213public HostServices HostServices { get; }
Instance\ProjectInstance.cs (4)
161private HostServices _hostServices; 639internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath, HostServices hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings) 2199internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache, HostServices hostServices) 2202ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(HostServices)} is already set. Cannot set again");
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildManager_Tests.cs (2)
3308var services = new HostServices(); 3448var services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
146var hostServices = new HostServices(); 185var hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
811HostServices 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)
458var hostServices = new HostServices(); 937private static ProjectInstance GetProjectInstance(string content, HostServices hostServices) 945private static ProjectInstance GetProjectInstance(string content, HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null) 975private static ProjectInstance GetSampleProjectInstance(HostServices hostServices) 983private static ProjectInstance GetSampleProjectInstance(HostServices hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)