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)
1220
collection.HostServices = new
HostServices
();
Microsoft.Build.Engine.UnitTests (46)
BackEnd\BuildManager_Tests.cs (13)
1155
var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new
HostServices
());
2413
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2474
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2532
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2580
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2669
var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new
HostServices
());
2740
new[] { "Build" }, new
HostServices
());
2837
new[] { "Build" }, new
HostServices
());
2937
new[] { "Build" }, new
HostServices
());
3023
new[] { "Build" }, new
HostServices
());
3092
new[] { "Build" }, new
HostServices
());
3374
var services = new
HostServices
();
3557
var services = new
HostServices
();
BackEnd\BuildRequest_Tests.cs (3)
175
var hostServices = new
HostServices
();
222
var hostServices = new
HostServices
();
261
var hostServices = new
HostServices
();
BackEnd\Scheduler_Tests.cs (1)
828
hostServices = new
HostServices
();
Instance\HostServices_Tests.cs (28)
40
HostServices hostServices = new
HostServices
();
61
HostServices hostServices = new
HostServices
();
74
HostServices hostServices = new
HostServices
();
87
HostServices hostServices = new
HostServices
();
98
HostServices hostServices = new
HostServices
();
113
HostServices hostServices = new
HostServices
();
123
HostServices hostServices = new
HostServices
();
135
HostServices hostServices = new
HostServices
();
151
HostServices hostServices = new
HostServices
();
162
HostServices hostServices = new
HostServices
();
183
HostServices hostServices = new
HostServices
();
197
HostServices hostServices = new
HostServices
();
218
HostServices hostServices = new
HostServices
();
233
HostServices hostServices = new
HostServices
();
248
HostServices hostServices = new
HostServices
();
259
HostServices hostServices = new
HostServices
();
275
HostServices hostServices = new
HostServices
();
287
HostServices hostServices = new
HostServices
();
301
HostServices hostServices = new
HostServices
();
314
HostServices hostServices = new
HostServices
();
326
HostServices hostServices = new
HostServices
();
339
HostServices hostServices = new
HostServices
();
353
HostServices hostServices = new
HostServices
();
369
HostServices hostServices = new
HostServices
();
389
HostServices hostServices = new
HostServices
();
405
HostServices hostServices = new
HostServices
();
424
HostServices hostServices = new
HostServices
();
448
var hostServices = new
HostServices
();
Instance\ProjectInstance_Internal_Tests.cs (1)
465
var hostServices = new
HostServices
();
87 references to HostServices
Microsoft.Build (43)
BackEnd\BuildManager\BuildParameters.cs (1)
505
public
HostServices
HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
33
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
hostServices)
45
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
58
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer)
87
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState)
104
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices)
120
string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags,
138
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
156
private BuildRequestData(string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, string projectFullPath)
237
public new
HostServices
? HostServices => base.HostServices;
BackEnd\BuildManager\BuildRequestDataBase.cs (3)
14
HostServices
? hostServices)
50
public
HostServices
? HostServices { get; }
60
HostServices
? hostServices)
BackEnd\Shared\BuildRequest.cs (5)
108
HostServices
hostServices,
147
HostServices
hostServices,
180
HostServices
hostServices,
382
internal
HostServices
HostServices
389
private
HostServices
_hostServices;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
234
private
HostServices
_hostServices;
274
HostServices
hostServices,
Definition\ProjectCollection.cs (2)
139
private
HostServices
_hostServices;
781
public
HostServices
HostServices
Graph\GraphBuildRequestData.cs (11)
44
public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild,
HostServices
? hostServices)
56
public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
71
public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild,
HostServices
? hostServices)
84
public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
105
public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild,
HostServices
? hostServices)
117
public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
138
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices)
150
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
158
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions)
169
private GraphBuildRequestData(ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, GraphBuildOptions? graphBuildOptions = null)
252
public new
HostServices
? HostServices => base.HostServices;
Instance\ProjectInstance.cs (4)
170
private
HostServices
_hostServices;
673
internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath,
HostServices
hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings)
2438
internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache,
HostServices
hostServices)
2441
ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(
HostServices
)} is already set. Cannot set again");
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
321
HostServices
hostServices,
Instance\TaskFactories\TaskHostTask.cs (2)
149
private readonly
HostServices
_hostServices;
175
HostServices
hostServices,
TaskHostConfiguration.cs (3)
98
private
HostServices
_hostServices;
168
HostServices
hostServices,
308
public
HostServices
HostServices
Microsoft.Build.Engine.UnitTests (39)
BackEnd\BuildManager_Tests.cs (2)
3374
var
services = new HostServices();
3557
var
services = new HostServices();
BackEnd\BuildRequest_Tests.cs (3)
175
var
hostServices = new HostServices();
222
var
hostServices = new HostServices();
261
var
hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
824
HostServices
hostServices = null;
Instance\HostServices_Tests.cs (28)
40
HostServices
hostServices = new HostServices();
61
HostServices
hostServices = new HostServices();
74
HostServices
hostServices = new HostServices();
87
HostServices
hostServices = new HostServices();
98
HostServices
hostServices = new HostServices();
113
HostServices
hostServices = new HostServices();
123
HostServices
hostServices = new HostServices();
135
HostServices
hostServices = new HostServices();
151
HostServices
hostServices = new HostServices();
162
HostServices
hostServices = new HostServices();
183
HostServices
hostServices = new HostServices();
197
HostServices
hostServices = new HostServices();
218
HostServices
hostServices = new HostServices();
233
HostServices
hostServices = new HostServices();
248
HostServices
hostServices = new HostServices();
259
HostServices
hostServices = new HostServices();
275
HostServices
hostServices = new HostServices();
287
HostServices
hostServices = new HostServices();
301
HostServices
hostServices = new HostServices();
314
HostServices
hostServices = new HostServices();
326
HostServices
hostServices = new HostServices();
339
HostServices
hostServices = new HostServices();
353
HostServices
hostServices = new HostServices();
369
HostServices
hostServices = new HostServices();
389
HostServices
hostServices = new HostServices();
405
HostServices
hostServices = new HostServices();
424
HostServices
hostServices = new HostServices();
448
var
hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (5)
465
var
hostServices = new HostServices();
949
private static ProjectInstance GetProjectInstance(string content,
HostServices
hostServices)
957
private static ProjectInstance GetProjectInstance(string content,
HostServices
hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
986
private static ProjectInstance GetSampleProjectInstance(
HostServices
hostServices)
994
private static ProjectInstance GetSampleProjectInstance(
HostServices
hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
MSBuild (5)
OutOfProcTaskAppDomainWrapperBase.cs (2)
59
private
HostServices
_hostServices;
109
HostServices
hostServices,
TaskHostConfiguration.cs (3)
98
private
HostServices
_hostServices;
168
HostServices
hostServices,
308
public
HostServices
HostServices