72 references to ProjectXmlUtilities
Microsoft.Build (72)
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)
9using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 162ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Construction\UsingTaskParameterGroupElement.cs (2)
9using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 130ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Evaluation\ProjectParser.cs (59)
13using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 145if (!ProjectXmlUtilities.VerifyValidProjectNamespace(element)) 160foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 212if (ProjectXmlUtilities.ThrowIfProjectInvalidChildElement(childElement.Name, childElement.ParentNode.Name, childElement.Location, _ParserIgnoreConfiguration)) 227ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration); 231foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 233ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericPropertyElement); 251ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration); 255foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 307ProjectXmlUtilities.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]); 334ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 347foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 407ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericMetadataElement); 435ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration); 439foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 475ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnImport, _ParserIgnoreConfiguration); 476ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.project); 477ProjectXmlUtilities.VerifyThrowProjectNoChildElements(element, _ParserIgnoreConfiguration); 483ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdk, nullIfNotExists: true), 484ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdkVersion, nullIfNotExists: true), 485ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.sdkMinimumVersion, nullIfNotExists: true)); 497ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration); 502foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 507ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 511ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskParameter, _ParserIgnoreConfiguration, XMakeElements.usingTaskParameter); 529ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnUsingTask, _ParserIgnoreConfiguration); 543ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyName); 544ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyFile); 551foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 560ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 569ProjectXmlUtilities.ThrowProjectInvalidChildElementDueToDuplicate(childElement); 572ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskBody, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericUsingTaskBodyElement); 578if (ProjectXmlUtilities.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration)) 597ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnTarget, _ParserIgnoreConfiguration); 598ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.name); 601string targetName = EscapingUtilities.UnescapeAll(ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.name)); 612foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 639ProjectXmlUtilities.VerifyThrowProjectAttributes(childElement, ValidAttributesOnOnError, _ParserIgnoreConfiguration); 640ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(childElement, XMakeAttributes.executeTargets); 641ProjectXmlUtilities.VerifyThrowProjectNoChildElements(childElement, _ParserIgnoreConfiguration); 689foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 714ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnOutput, _ParserIgnoreConfiguration); 715ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.taskParameter); 716ProjectXmlUtilities.VerifyThrowProjectNoChildElements(element, _ParserIgnoreConfiguration); 727ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, itemNameAttribute, XMakeAttributes.itemName); 728ProjectXmlUtilities.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, propertyNameAttribute, XMakeAttributes.propertyName); 740ProjectXmlUtilities.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration); 744foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 773ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 788ProjectXmlUtilities.ThrowProjectInvalidAttribute(attribute); 793foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 808ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration); 818foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 837if (ProjectXmlUtilities.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration)) 858ProjectXmlUtilities.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.condition); 872ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration); 886foreach (XmlElementWithLocation childElement in ProjectXmlUtilities.GetVerifyThrowProjectChildElements(element)) 909if (ProjectXmlUtilities.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration)) 928ProjectXmlUtilities.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration);
Instance\TaskRegistry.UsingTaskInfo.cs (2)
14using ProjectXmlUtilities = Microsoft.Build.Internal.ProjectXmlUtilities; 332ProjectXmlUtilities.VerifyThrowProjectNoChildElements(