25 references to TargetName
Microsoft.Build (19)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (16)
668
if (_buildResult.HasResultsForTarget(targetSpecification.
TargetName
))
670
if (_buildResult[targetSpecification.
TargetName
].ResultCode != TargetResultCode.Skipped)
681
if (_requestEntry.RequestConfiguration.ActivelyBuildingTargets.TryGetValue(targetSpecification.
TargetName
, out idOfAlreadyBuildingRequest))
686
await _requestBuilderCallback.BlockOnTargetInProgress(idOfAlreadyBuildingRequest, targetSpecification.
TargetName
, null);
690
if (_requestEntry.RequestConfiguration.ActivelyBuildingTargets.ContainsKey(targetSpecification.
TargetName
))
692
ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.
TargetName
);
704
ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependency", targetSpecification.
TargetName
);
714
ProjectErrorUtilities.ThrowInvalidProject(targetLocation, "CircularDependencyInTargetGraph", targetSpecification.
TargetName
, parentTargetEntry.Name, buildReason, targetSpecification.
TargetName
, string.Join("<-", targetDependenceChain));
724
if (String.Equals(entry.Name, targetSpecification.
TargetName
, StringComparison.OrdinalIgnoreCase))
801
_buildResult.ResultsByTarget.TryGetValue(afterTarget.
TargetName
, out TargetResult result);
816
if (targetsChecked.Add(afterTarget.
TargetName
))
818
targetsToCheckForAfterTargets.Enqueue(afterTarget.
TargetName
);
834
if (String.Equals(currentParent.Name, targetSpecification.
TargetName
, StringComparison.OrdinalIgnoreCase))
841
circularDependenceChain.Add(targetSpecification.
TargetName
);
842
while (!String.Equals(currentParent.Name, targetSpecification.
TargetName
, StringComparison.OrdinalIgnoreCase))
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
231
return _targetSpecification.
TargetName
;
936
_requestEntry.RequestConfiguration.Project.Targets.TryGetValue(_targetSpecification.
TargetName
, out _target);
942
_targetSpecification.
TargetName
);
Microsoft.Build.Engine.UnitTests (6)
BackEnd\TargetEntry_Tests.cs (4)
183
Assert.Equal("Bar", depsEnum.Current.
TargetName
);
192
Assert.Equal("Bar", depsEnum.Current.
TargetName
);
194
Assert.Equal("Foo", depsEnum.Current.
TargetName
);
329
TargetEntry depEntry = CreateStandardTargetEntry(project, target.
TargetName
, entry);
TestComparers\ProjectInstanceModelTestComparers.cs (2)
264
Assert.Equal(x.
TargetName
, y.
TargetName
);