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