132 references to XMakeElements
Microsoft.Build (128)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
1107XMakeElements.output); 1125XMakeElements.output); 1138XMakeElements.output);
Construction\ProjectChooseElement.cs (1)
97XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.choose);
Construction\ProjectExtensionsElement.cs (1)
194XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.projectExtensions);
Construction\ProjectImportElement.cs (2)
146XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.import); 161XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.import);
Construction\ProjectImportGroupElement.cs (1)
78XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.importGroup);
Construction\ProjectItemDefinitionGroupElement.cs (1)
69XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.itemDefinitionGroup);
Construction\ProjectItemElement.cs (2)
425ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(itemType), "CannotModifyReservedItem", itemType); 444ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(newItemType), "CannotModifyReservedItem", newItemType);
Construction\ProjectItemGroupElement.cs (1)
166XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.itemGroup);
Construction\ProjectMetadataElement.cs (2)
107ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.ReservedItemNames.Contains(name), "CannotModifyReservedItemMetadata", name); 124ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(newName), "CannotModifyReservedItemMetadata", newName);
Construction\ProjectOnErrorElement.cs (1)
76XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.onError);
Construction\ProjectOtherwiseElement.cs (1)
90XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.otherwise);
Construction\ProjectOutputElement.cs (2)
144XMakeElements.output, 148XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.output);
Construction\ProjectPropertyElement.cs (2)
97ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.ReservedItemNames.Contains(name) && !ReservedPropertyNames.IsReservedProperty(name), "OM_CannotCreateReservedProperty", name); 114ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(newName), "CannotModifyReservedProperty", newName);
Construction\ProjectPropertyGroupElement.cs (1)
99XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.propertyGroup);
Construction\ProjectSdkElement.cs (1)
98var element = containingProject.CreateElement(XMakeElements.sdk);
Construction\ProjectTargetElement.cs (2)
109int indexOfSpecialCharacter = unescapedValue.IndexOfAny(XMakeElements.InvalidTargetNameCharacters); 406XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.target);
Construction\ProjectUsingTaskBodyElement.cs (1)
130XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.usingTaskBody);
Construction\ProjectUsingTaskElement.cs (3)
74ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(AssemblyFile), "OM_EitherAttributeButNotBoth", XMakeElements.usingTask, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName); 237XMakeElements.usingTask, 241XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.usingTask);
Construction\ProjectWhenElement.cs (1)
69XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.when);
Construction\Solution\SolutionProjectGenerator.cs (14)
336if ((elementType != XMakeElements.message) && (code != null)) 341if ((elementType != XMakeElements.message) && (helpKeyword != null)) 595if ((elementType != XMakeElements.message) && (code != null)) 600if ((elementType != XMakeElements.message) && (helpKeyword != null)) 1875XMakeElements.warning, 1886XMakeElements.warning, 1898XMakeElements.message, 1910XMakeElements.warning, 1939XMakeElements.message, 1951XMakeElements.warning, 2354XMakeElements.error, 2362XMakeElements.warning, 2370XMakeElements.message, 2386XMakeElements.error,
Construction\UsingTaskParameterGroupElement.cs (1)
103XmlElementWithLocation element = containingProject.CreateElement(XMakeElements.usingTaskParameterGroup);
Definition\ProjectItem.cs (1)
587ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.ReservedItemNames.Contains(name), "CannotModifyReservedItemMetadata", name);
Definition\ProjectItemDefinition.cs (1)
155ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.ReservedItemNames.Contains(name), "CannotModifyReservedItemMetadata", name);
Definition\ProjectProperty.cs (1)
549ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(name), "OM_ReservedName", name);
Evaluation\Evaluator.cs (4)
2002ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", String.Empty, XMakeAttributes.project, XMakeElements.import); 2032ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message); 2077ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message); 2494ProjectErrorUtilities.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Evaluation\Preprocessor.cs (7)
238String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal)) 275if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.import, child.Name, StringComparison.Ordinal)) 285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty; 309$"\r\n This import was added implicitly because the {XMakeElements.project} element's {XMakeAttributes.sdk} attribute specified \"{importSdk}\"."; 333if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.importGroup, child.Name, StringComparison.Ordinal)) 342destination.AppendChild(destinationDocument.CreateComment("</" + XMakeElements.importGroup + ">")); 350if (clone.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal) && clone.Attributes?[XMakeAttributes.sdk] != null)
Evaluation\ProjectParser.cs (42)
134ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project); 136ProjectErrorUtilities.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath); 137ProjectErrorUtilities.VerifyThrowInvalidProject(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.Name); 159case XMakeElements.propertyGroup: 163case XMakeElements.itemGroup: 167case XMakeElements.importGroup: 171case XMakeElements.import: 175case XMakeElements.usingTask: 179case XMakeElements.target: 183case XMakeElements.itemDefinitionGroup: 187case XMakeElements.choose: 191case XMakeElements.projectExtensions: 195case XMakeElements.sdk: 200case XMakeElements.error: 201case XMakeElements.warning: 202case XMakeElements.message: 226ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name); 310ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType); 379if (FileUtilities.ItemSpecModifiers.IsItemSpecModifier(name) || XMakeElements.ReservedItemNames.Contains(name)) 401ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name); 430childElement.Name == XMakeElements.import, 520XMakeElements.usingTask, 538case XMakeElements.usingTaskParameterGroup: 547case XMakeElements.usingTaskBody: 580int indexOfSpecialCharacter = targetName.IndexOfAny(XMakeElements.InvalidTargetNameCharacters); 595case XMakeElements.propertyGroup: 598ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 604case XMakeElements.itemGroup: 607ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 613case XMakeElements.onError: 623case XMakeElements.itemDefinitionGroup: 630ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name); 668ProjectErrorUtilities.VerifyThrowInvalidProject(childElement.Name == XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name); 787case XMakeElements.when: 793case XMakeElements.otherwise: 851case XMakeElements.propertyGroup: 855case XMakeElements.itemGroup: 859case XMakeElements.choose: 863case XMakeElements.itemDefinitionGroup:
Instance\ProjectInstance.cs (1)
2958|| XMakeElements.ReservedItemNames.Contains(environmentVariableName)
Instance\ProjectItemInstance.cs (1)
711ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(itemTypeToUse), "OM_ReservedName", itemTypeToUse);
Instance\ProjectMetadataInstance.cs (2)
68ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(name), "OM_ReservedName", name); 72ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(name) && !FileUtilities.ItemSpecModifiers.IsItemSpecModifier(name), "OM_ReservedName", name);
Instance\ProjectPropertyInstance.cs (2)
328ErrorUtilities.VerifyThrowArgument(!XMakeElements.ReservedItemNames.Contains(name), "OM_ReservedName", name); 334ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(name), location, "CannotModifyReservedProperty", name);
Instance\TaskRegistry.cs (9)
326XMakeElements.usingTask); 351XMakeElements.usingTask); 360XMakeElements.usingTask); 420ProjectErrorUtilities.ThrowInvalidProject(projectUsingTaskXml.Location, "InvalidAttributeValueWithException", assemblyFile, XMakeAttributes.assemblyFile, XMakeElements.usingTask, ex.Message); 1653XMakeElements.usingTaskBody); 1694XMakeElements.usingTaskParameter); 1719XMakeElements.usingTaskParameter); 1732XMakeElements.usingTaskParameter); 1758XMakeElements.usingTaskParameter);
Utilities\EngineFileUtilities.cs (12)
377XMakeElements.itemGroup, 390XMakeElements.itemGroup, 406XMakeElements.itemGroup, 419XMakeElements.import, 428XMakeElements.itemGroup, 437XMakeElements.itemGroup, 455XMakeElements.itemGroup, 470XMakeElements.itemGroup, 482XMakeElements.itemGroup, 495XMakeElements.import, 505XMakeElements.itemGroup, 515XMakeElements.itemGroup,
Utilities\Utilities.cs (1)
571!XMakeElements.ReservedItemNames.Contains(environmentVariableName) &&
Microsoft.Build.Engine.UnitTests (4)
Construction\SolutionProjectGenerator_Tests.cs (4)
27using XMakeElements = Microsoft.Build.Shared.XMakeElements; 307SolutionProjectGenerator.AddErrorWarningMessageElement(target, XMakeElements.message, true, "SolutionVenusProjectNoClean"); 308SolutionProjectGenerator.AddErrorWarningMessageElement(target, XMakeElements.warning, true, "SolutionParseUnknownProjectType", "proj1.csproj"); 309SolutionProjectGenerator.AddErrorWarningMessageElement(target, XMakeElements.error, true, "SolutionInvalidSolutionConfiguration");