46 references to Name
Microsoft.Build (26)
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
53
projectLoggingContext.BuildEventContext, target.
Name
, projectFullPath, target.Location.File,
114
LoggingService.LogTargetFinished(BuildEventContext, _target.
Name
, projectFullPath, _target.Location.File, success, targetOutputWrapper);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
280
ErrorUtilities.VerifyThrow(pushed, "Failed to push any targets onto the stack. Target: {0} Current Target: {1}", targets[i], currentTargetEntry.Target.
Name
);
564
ParentTarget = currentTargetEntry.ParentEntry?.Target.
Name
,
BackEnd\Components\RequestBuilder\TargetEntry.cs (5)
352
ProjectErrorUtilities.ThrowInvalidProject(_target.ConditionLocation, "TargetConditionHasInvalidMetadataReference", _target.
Name
, _target.Condition);
389
TargetName = _target.
Name
,
391
ParentTarget = ParentEntry?.Target?.
Name
,
425
ErrorUtilities.VerifyThrow(!_isExecuting, "Target {0} is already executing", _target.
Name
);
442
parentTargetName = ParentEntry.Target.
Name
;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (9)
143
_targetToAnalyze.InputsLocation, "TargetInputsSpecifiedWithoutOutputs", TargetToAnalyze.
Name
);
240
TargetName = 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);
802
using (FullTracking.Track(taskLoggingContext.TargetLoggingContext.Target.
Name
, _taskNode.Name, _buildRequestEntry.ProjectRootDirectory, _buildRequestEntry.RequestConfiguration.Project.PropertiesToBuildWith))
877
ProjectErrorUtilities.ThrowInvalidProject(taskLoggingContext.Task.Location, "CircularDependency", taskLoggingContext.TargetLoggingContext.Target.
Name
);
Definition\Project.cs (1)
4478
Targets[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
; }
470
ProjectTargetElement target = rootElement.CreateTargetElement(
Name
);
Microsoft.Build.Engine.OM.UnitTests (1)
Instance\ProjectTargetInstance_Tests.cs (1)
29
Assert.Equal("t", target.
Name
);
Microsoft.Build.Engine.UnitTests (19)
Construction\SolutionProjectGenerator_Tests.cs (16)
1529
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Build", StringComparison.OrdinalIgnoreCase)));
1530
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Clean", StringComparison.OrdinalIgnoreCase)));
1531
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Rebuild", StringComparison.OrdinalIgnoreCase)));
1532
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Publish", StringComparison.OrdinalIgnoreCase)));
1534
ProjectTargetInstance buildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Build", StringComparison.OrdinalIgnoreCase)).First().Value;
1535
ProjectTargetInstance cleanTarget = instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Clean", StringComparison.OrdinalIgnoreCase)).First().Value;
1536
ProjectTargetInstance rebuildTarget = instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Rebuild", StringComparison.OrdinalIgnoreCase)).First().Value;
1537
ProjectTargetInstance publishTarget = instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Publish", StringComparison.OrdinalIgnoreCase)).First().Value;
2355
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "One", StringComparison.OrdinalIgnoreCase)));
2359
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Two", StringComparison.OrdinalIgnoreCase)));
2360
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Three", StringComparison.OrdinalIgnoreCase)));
2361
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Four", StringComparison.OrdinalIgnoreCase)));
2365
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Build", StringComparison.OrdinalIgnoreCase)));
2369
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Five", StringComparison.OrdinalIgnoreCase)));
2370
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Rebuild", StringComparison.OrdinalIgnoreCase)));
2374
Assert.Single(instances[0].Targets.Where(target => String.Equals(target.Value.
Name
, "Six", StringComparison.OrdinalIgnoreCase)));
Instance\ProjectInstance_Internal_Tests.cs (1)
791
targetInstance.
Name
.ShouldBe("b");
TestComparers\ProjectInstanceModelTestComparers.cs (2)
84
Assert.Equal(x.
Name
, y.
Name
);