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