91 references to ProjectXmlUtilities
Microsoft.Build (73)
Construction\ProjectElement.cs (4)
11using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 542ProjectXmlUtilities.GetAttributeValue(XmlElement, attributeName, nullIfNotExists); 583ProjectXmlUtilities.SetOrRemoveAttribute(XmlElement, name, value); 599ProjectXmlUtilities.SetOrRemoveAttribute(XmlElement, name, value);
Construction\ProjectElementContainer.cs (1)
448ProjectXmlUtilities.SetOrRemoveAttribute(XmlElement, child.XmlElement.Name, value);
Construction\ProjectTargetElement.cs (2)
11using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 270XmlAttributeWithLocation returnsAttribute = ProjectXmlUtilities.SetOrRemoveAttribute(
Construction\ProjectUsingTaskBodyElement.cs (2)
8using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 167ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Construction\UsingTaskParameterGroupElement.cs (2)
9using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 136ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Evaluation\ProjectParser.cs (59)
11using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 140if (!ProjectXmlUtilities.VerifyValidProjectNamespace(element)) 155foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 207ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.Name, childElement.ParentNode.Name, childElement.Location); 218ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel); 222foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 224ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnlyConditionAndLabel); 242ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel); 246foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 298ProjectXmlUtilities.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]); 323ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 335foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 395ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel); 423ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel); 427foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 456ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnImport); 457ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.project); 458ProjectXmlUtilities.VerifyThrowProjectNoChildElements(element); 464ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdk, nullIfNotExists: true), 465ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdkVersion, nullIfNotExists: true), 466ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdkMinimumVersion, nullIfNotExists: true)); 478ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element); 483foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 488ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 492ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskParameter); 510ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnUsingTask); 524ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyName); 525ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyFile); 532foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 541ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 550ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 553ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskBody); 559ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location); 574ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnTarget); 575ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.name); 578string targetName = EscapingUtilities.UnescapeAll(ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.name)); 589foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 616ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnOnError); 617ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(childElement, XMakeAttributes.executeTargets); 618ProjectXmlUtilities.VerifyThrowProjectNoChildElements(childElement); 666foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 683ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnOutput); 684ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.taskParameter); 685ProjectXmlUtilities.VerifyThrowProjectNoChildElements(element); 696ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, itemNameAttribute, XMakeAttributes.itemName); 697ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, propertyNameAttribute, XMakeAttributes.propertyName); 709ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel); 713foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 740ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 752ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 756foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 771ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element); 781foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 800ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location); 817ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.condition); 831ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element); 845foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 868ProjectXmlUtilities.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location); 883ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element);
Instance\TaskRegistry.cs (2)
24using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 332ProjectXmlUtilities.VerifyThrowProjectNoChildElements(projectUsingTaskXml.XmlElement);
Xml\ProjectXmlUtilities.cs (1)
187ProjectXmlUtilities.VerifyThrowProjectInvalidAttribute(validAttributes.Contains(attribute.Name), attribute);
Microsoft.Build.Conversion.Core (18)
ProjectFileConverter.cs (18)
26using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 1684ProjectXmlUtilities.ThrowProjectInvalidChildElement(visualStudioProjectChildNode.Name, visualStudioProjectElement.Name, visualStudioProjectElement.Location); 1866ProjectXmlUtilities.ThrowProjectInvalidChildElement(languageChildNode.Name, languageElement.Name, languageElement.Location); 2065ProjectXmlUtilities.ThrowProjectInvalidChildElement(buildChildNode.Name, buildElement.Name, buildElement.Location); 2189ProjectXmlUtilities.ThrowProjectInvalidChildElement(settingsChildNode.Name, settingsElement.Name, settingsElement.Location); 2430ProjectXmlUtilities.ThrowProjectInvalidChildElement(configChildNode.Name, configElement.Name, configElement.Location); 2583ProjectXmlUtilities.VerifyThrowProjectNoChildElements(interopRegistrationElement); 2664ProjectXmlUtilities.ThrowProjectInvalidChildElement(referencesChildNode.Name, referencesElement.Name, referencesElement.Location); 2772ProjectXmlUtilities.VerifyThrowProjectNoChildElements(referenceElement); 3176ProjectXmlUtilities.ThrowProjectInvalidChildElement(importsChildNode.Name, importsElement.Name, importsElement.Location); 3231ProjectXmlUtilities.VerifyThrowProjectNoChildElements(importElement); 3295ProjectXmlUtilities.ThrowProjectInvalidChildElement(filesChildNode.Name, filesElement.Name, filesElement.Location); 3363ProjectXmlUtilities.ThrowProjectInvalidChildElement(includeChildNode.Name, includeElement.Name, includeElement.Location); 3501ProjectXmlUtilities.VerifyThrowProjectNoChildElements(fileElement); 3703ProjectXmlUtilities.VerifyThrowProjectNoChildElements(folderElement); 3764ProjectXmlUtilities.ThrowProjectInvalidChildElement(startupServicesChildNode.Name, startupServicesElement.Name, startupServicesElement.Location); 3819ProjectXmlUtilities.VerifyThrowProjectNoChildElements(serviceElement); 3866ProjectXmlUtilities.VerifyThrowProjectNoChildElements(otherProjectSettingsElement);