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)
1219
collection.HostServices = new
HostServices
();
Microsoft.Build.Engine.UnitTests (45)
BackEnd\BuildManager_Tests.cs (13)
1154
var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new
HostServices
());
2411
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2472
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2530
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2578
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2667
var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new
HostServices
());
2738
new[] { "Build" }, new
HostServices
());
2835
new[] { "Build" }, new
HostServices
());
2935
new[] { "Build" }, new
HostServices
());
3021
new[] { "Build" }, new
HostServices
());
3090
new[] { "Build" }, new
HostServices
());
3372
var services = new
HostServices
();
3512
var services = new
HostServices
();
BackEnd\BuildRequest_Tests.cs (2)
145
var hostServices = new
HostServices
();
184
var hostServices = new
HostServices
();
BackEnd\Scheduler_Tests.cs (1)
815
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
();
73 references to HostServices
Microsoft.Build (35)
BackEnd\BuildManager\BuildParameters.cs (1)
490
public
HostServices
HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
32
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
hostServices)
44
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
57
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer)
86
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState)
103
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices)
119
string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags,
137
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
155
private BuildRequestData(string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, string projectFullPath)
236
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)
106
HostServices
hostServices,
145
HostServices
hostServices,
178
HostServices
hostServices,
380
internal
HostServices
HostServices
387
private
HostServices
_hostServices;
Definition\ProjectCollection.cs (2)
138
private
HostServices
_hostServices;
724
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)
163
private
HostServices
_hostServices;
641
internal ProjectInstance(Evaluation.Project.Data data, string directory, string fullPath,
HostServices
hostServices, PropertyDictionary<ProjectPropertyInstance> environmentVariableProperties, ProjectInstanceSettings settings)
2344
internal void LateInitialize(ProjectRootElementCacheBase projectRootElementCache,
HostServices
hostServices)
2347
ErrorUtilities.VerifyThrow(_hostServices == null, $"{nameof(
HostServices
)} is already set. Cannot set again");
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildManager_Tests.cs (2)
3372
var
services = new HostServices();
3512
var
services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
145
var
hostServices = new HostServices();
184
var
hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
811
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)