40 references to Targets
Microsoft.Build (25)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
556
string.Join(";", request.
Targets
));
BackEnd\Components\Caching\ResultsCache.cs (5)
121
foreach (string target in request.
Targets
)
181
bool explicitTargetsSatisfied = CheckResults(allResults, request.
Targets
, response.ExplicitTargetsToBuild, skippedResultsDoNotCauseCacheMiss);
195
if (request.
Targets
.Count == 0)
211
if (request.
Targets
.Count > 0)
213
targetsToAddResultsFor.AddRange(request.
Targets
);
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
39
requestEntry.Request.
Targets
,
64
request.
Targets
,
86
requestEntry.Request.
Targets
,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
322
return new FileAccessContext(configuration.ProjectFullPath, globalProperties, buildRequest.
Targets
);
BackEnd\Components\Scheduler\Scheduler.cs (10)
2003
request.
Targets
.Count == 0
2005
: string.Join(";", request.
Targets
));
2068
foreach (string target in request.
Targets
)
2138
string.Join(";", request.
Targets
));
2262
if (existingRequest.BuildRequest.
Targets
.Count == request.
Targets
.Count)
2264
List<string> leftTargets = new List<string>(existingRequest.BuildRequest.
Targets
);
2265
List<string> rightTargets = new List<string>(request.
Targets
);
2535
String.Join(", ", request.BuildRequest.
Targets
));
2820
string.Join(", ", buildRequest.
Targets
.ToArray()));
BackEnd\Shared\BuildRequest.cs (1)
67
/// <inheritdoc cref="BuildRequest.
Targets
"/>
BackEnd\Shared\BuildRequestConfiguration.cs (4)
774
CollectionHelpers.SetEquivalent(request.
Targets
, request.ProxyTargets.ProxyTargetToRealTargetMap.Keys),
778
bool hasInitialTargets = request.
Targets
.Count == 0 ? false : true;
782
(hasInitialTargets ? _projectDefaultTargets.Count : request.
Targets
.Count));
791
foreach (var target in request.
Targets
)
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildRequest_Tests.cs (10)
71
Assert.NotNull(request.
Targets
);
72
Assert.Empty(request.
Targets
);
75
Assert.NotNull(request2.
Targets
);
76
Assert.Single(request2.
Targets
);
77
Assert.Equal("a", request2.
Targets
[0]);
133
Assert.Equal(request.
Targets
.Count, deserializedRequest.
Targets
.Count);
134
for (int i = 0; i < request.
Targets
.Count; i++)
136
Assert.Equal(request.
Targets
[i], deserializedRequest.
Targets
[i]);
BackEnd\BuildRequestEngine_Tests.cs (5)
161
foreach (string target in _entry.Request.
Targets
)
419
Assert.Single(_newRequest_Request.BuildRequests[0].
Targets
);
420
Assert.Equal("requiredTarget1", _newRequest_Request.BuildRequests[0].
Targets
[0]);
486
Assert.Single(_newRequest_Request.BuildRequests[0].
Targets
);
487
Assert.Equal("requiredTarget1", _newRequest_Request.BuildRequests[0].
Targets
[0]);