10 references to name
Microsoft.Build (9)
Construction\ProjectTargetElement.cs (3)
94
string unescapedValue = EscapingUtilities.UnescapeAll(GetAttributeValue(XMakeAttributes.
name
));
115
SetOrRemoveAttribute(XMakeAttributes.
name
, unescapedValue, "Set target Name {0}", value);
293
public ElementLocation NameLocation => GetAttributeLocation(XMakeAttributes.
name
);
Evaluation\ProjectParser.cs (4)
56
private static readonly HashSet<string> ValidAttributesOnTarget = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.
name
, XMakeAttributes.inputs, XMakeAttributes.outputs, XMakeAttributes.keepDuplicateOutputs, XMakeAttributes.dependsOnTargets, XMakeAttributes.beforeTargets, XMakeAttributes.afterTargets, XMakeAttributes.returns };
575
ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.
name
);
578
string targetName = EscapingUtilities.UnescapeAll(ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.
name
));
583
ProjectErrorUtilities.ThrowInvalidProject(element.GetAttributeLocation(XMakeAttributes.
name
), "NameInvalid", targetName, targetName[indexOfSpecialCharacter]);
Instance\TaskRegistry.cs (1)
325
XMakeAttributes.
name
,
XMakeAttributes.cs (1)
108
private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> {
name
, condition, dependsOnTargets, beforeTargets, afterTargets };
Microsoft.Build.Engine.UnitTests (1)
XmakeAttributes_Tests.cs (1)
47
Assert.True(XMakeAttributes.IsNonBatchingTargetAttribute(XMakeAttributes.
name
));