46 references to Name
Microsoft.Build (26)
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
53projectLoggingContext.BuildEventContext, target.Name, projectFullPath, target.Location.File, 114LoggingService.LogTargetFinished(BuildEventContext, _target.Name, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
280ErrorUtilities.VerifyThrow(pushed, "Failed to push any targets onto the stack. Target: {0} Current Target: {1}", targets[i], currentTargetEntry.Target.Name); 564ParentTarget = currentTargetEntry.ParentEntry?.Target.Name,
BackEnd\Components\RequestBuilder\TargetEntry.cs (5)
352ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.Name, _target.Condition); 389TargetName = _target.Name, 391ParentTarget = ParentEntry?.Target?.Name, 425ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.Name); 442parentTargetName = ParentEntry.Target.Name;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (9)
143_targetToAnalyze.InputsLocation, "TargetInputsSpecifiedWithoutOutputs", TargetToAnalyze.Name); 240TargetName = TargetToAnalyze.Name, 276_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetCompletely", _targetToAnalyze.Name); 281_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name); 294_loggingService.LogError(_buildEventContext, new BuildEventFileInfo(String.Empty), "BuildTargetPartially", _targetToAnalyze.Name); 299_loggingService.LogComment(_buildEventContext, MessageImportance.Normal, "BuildTargetPartially", _targetToAnalyze.Name); 456"SkipTargetBecauseNoInputs", TargetToAnalyze.Name); 467_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name); 497"SkipTargetBecauseNoOutputs", TargetToAnalyze.Name);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
167_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name, _taskNode.Name); 802using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.Name, _taskNode.Name, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.Project.PropertiesToBuildWith)) 877ProjectErrorUtilities.ThrowInvalidProject(taskLoggingContext.Task.Location, "CircularDependency", taskLoggingContext.TargetLoggingContext.Target.Name);
Definition\Project.cs (1)
4478Targets[target.Name] = target;
Evaluation\Evaluator.cs (1)
1039_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.Location.File);
Instance\ProjectInstance.cs (1)
1833_actualTargets[target.Name] = target;
Instance\ProjectTargetInstance.cs (2)
447{ return Name; } 470ProjectTargetElement target = rootElement.CreateTargetElement(Name);
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectTargetInstance_Tests.cs (1)
29Assert.Equal("t", target.Name);
Microsoft.Build.Engine.UnitTests (19)
Construction\SolutionProjectGenerator_Tests.cs (16)
1529Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase))); 1530Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase))); 1531Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase))); 1532Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase))); 1534ProjectTargetInstance buildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase)).First().Value; 1535ProjectTargetInstance cleanTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Clean", StringComparison.OrdinalIgnoreCase)).First().Value; 1536ProjectTargetInstance rebuildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase)).First().Value; 1537ProjectTargetInstance publishTarget = instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Publish", StringComparison.OrdinalIgnoreCase)).First().Value; 2355Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "One", StringComparison.OrdinalIgnoreCase))); 2359Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Two", StringComparison.OrdinalIgnoreCase))); 2360Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Three", StringComparison.OrdinalIgnoreCase))); 2361Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Four", StringComparison.OrdinalIgnoreCase))); 2365Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Build", StringComparison.OrdinalIgnoreCase))); 2369Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Five", StringComparison.OrdinalIgnoreCase))); 2370Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Rebuild", StringComparison.OrdinalIgnoreCase))); 2374Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.Name, "Six", StringComparison.OrdinalIgnoreCase)));
Instance\ProjectInstance_Internal_Tests.cs (1)
791targetInstance.Name.ShouldBe("b");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
84Assert.Equal(x.Name, y.Name);