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)
1219
collection.HostServices = new
HostServices
();
Microsoft.Build.Engine.UnitTests (45)
BackEnd\BuildManager_Tests.cs (13)
1155
var brd = new BuildRequestData(project.FullPath, globalProperties, null, targets, new
HostServices
());
2412
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2473
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2531
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2579
var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new
HostServices
());
2668
var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new
HostServices
());
2739
new[] { "Build" }, new
HostServices
());
2836
new[] { "Build" }, new
HostServices
());
2936
new[] { "Build" }, new
HostServices
());
3022
new[] { "Build" }, new
HostServices
());
3091
new[] { "Build" }, new
HostServices
());
3373
var services = new
HostServices
();
3513
var services = new
HostServices
();
BackEnd\BuildRequest_Tests.cs (2)
146
var hostServices = new
HostServices
();
185
var hostServices = new
HostServices
();
BackEnd\Scheduler_Tests.cs (1)
816
hostServices = new
HostServices
();
Instance\HostServices_Tests.cs (28)
41
HostServices hostServices = new
HostServices
();
62
HostServices hostServices = new
HostServices
();
75
HostServices hostServices = new
HostServices
();
88
HostServices hostServices = new
HostServices
();
99
HostServices hostServices = new
HostServices
();
114
HostServices hostServices = new
HostServices
();
124
HostServices hostServices = new
HostServices
();
136
HostServices hostServices = new
HostServices
();
152
HostServices hostServices = new
HostServices
();
163
HostServices hostServices = new
HostServices
();
184
HostServices hostServices = new
HostServices
();
198
HostServices hostServices = new
HostServices
();
219
HostServices hostServices = new
HostServices
();
234
HostServices hostServices = new
HostServices
();
249
HostServices hostServices = new
HostServices
();
260
HostServices hostServices = new
HostServices
();
276
HostServices hostServices = new
HostServices
();
288
HostServices hostServices = new
HostServices
();
302
HostServices hostServices = new
HostServices
();
315
HostServices hostServices = new
HostServices
();
327
HostServices hostServices = new
HostServices
();
340
HostServices hostServices = new
HostServices
();
354
HostServices hostServices = new
HostServices
();
370
HostServices hostServices = new
HostServices
();
390
HostServices hostServices = new
HostServices
();
406
HostServices hostServices = new
HostServices
();
425
HostServices hostServices = new
HostServices
();
449
var hostServices = new
HostServices
();
Instance\ProjectInstance_Internal_Tests.cs (1)
466
var hostServices = new
HostServices
();
73 references to HostServices
Microsoft.Build (35)
BackEnd\BuildManager\BuildParameters.cs (1)
478
public
HostServices
HostServices { get; set; }
BackEnd\BuildManager\BuildRequestData.cs (9)
39
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
hostServices)
51
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
64
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer)
93
public BuildRequestData(ProjectInstance projectInstance, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, IEnumerable<string>? propertiesToTransfer, RequestedProjectState requestedProjectState)
110
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices)
126
string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags,
144
public BuildRequestData(string projectFullPath, IDictionary<string, string?> globalProperties, string? toolsVersion, string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
162
private BuildRequestData(string[] targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, string projectFullPath)
243
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;
719
public
HostServices
HostServices
Graph\GraphBuildRequestData.cs (11)
43
public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild,
HostServices
? hostServices)
55
public GraphBuildRequestData(ProjectGraph projectGraph, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
70
public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild,
HostServices
? hostServices)
83
public GraphBuildRequestData(string projectFullPath, IDictionary<string, string> globalProperties, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
104
public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild,
HostServices
? hostServices)
116
public GraphBuildRequestData(ProjectGraphEntryPoint projectGraphEntryPoint, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
137
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices)
149
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags)
157
public GraphBuildRequestData(IEnumerable<ProjectGraphEntryPoint> projectGraphEntryPoints, ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, GraphBuildOptions graphBuildOptions)
168
private GraphBuildRequestData(ICollection<string> targetsToBuild,
HostServices
? hostServices, BuildRequestDataFlags flags, GraphBuildOptions? graphBuildOptions = null)
251
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)
3373
var
services = new HostServices();
3513
var
services = new HostServices();
BackEnd\BuildRequest_Tests.cs (2)
146
var
hostServices = new HostServices();
185
var
hostServices = new HostServices();
BackEnd\Scheduler_Tests.cs (1)
812
HostServices
hostServices = null;
Instance\HostServices_Tests.cs (28)
41
HostServices
hostServices = new HostServices();
62
HostServices
hostServices = new HostServices();
75
HostServices
hostServices = new HostServices();
88
HostServices
hostServices = new HostServices();
99
HostServices
hostServices = new HostServices();
114
HostServices
hostServices = new HostServices();
124
HostServices
hostServices = new HostServices();
136
HostServices
hostServices = new HostServices();
152
HostServices
hostServices = new HostServices();
163
HostServices
hostServices = new HostServices();
184
HostServices
hostServices = new HostServices();
198
HostServices
hostServices = new HostServices();
219
HostServices
hostServices = new HostServices();
234
HostServices
hostServices = new HostServices();
249
HostServices
hostServices = new HostServices();
260
HostServices
hostServices = new HostServices();
276
HostServices
hostServices = new HostServices();
288
HostServices
hostServices = new HostServices();
302
HostServices
hostServices = new HostServices();
315
HostServices
hostServices = new HostServices();
327
HostServices
hostServices = new HostServices();
340
HostServices
hostServices = new HostServices();
354
HostServices
hostServices = new HostServices();
370
HostServices
hostServices = new HostServices();
390
HostServices
hostServices = new HostServices();
406
HostServices
hostServices = new HostServices();
425
HostServices
hostServices = new HostServices();
449
var
hostServices = new HostServices();
Instance\ProjectInstance_Internal_Tests.cs (5)
466
var
hostServices = new HostServices();
950
private static ProjectInstance GetProjectInstance(string content,
HostServices
hostServices)
958
private static ProjectInstance GetProjectInstance(string content,
HostServices
hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)
987
private static ProjectInstance GetSampleProjectInstance(
HostServices
hostServices)
995
private static ProjectInstance GetSampleProjectInstance(
HostServices
hostServices, IDictionary<string, string> globalProperties, ProjectCollection projectCollection, string toolsVersion = null)