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