72 references to ProjectXmlUtilities
Microsoft.Build (72)
Construction\ProjectElement.cs (4)
11
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
542
ProjectXmlUtilities
.GetAttributeValue(XmlElement, attributeName, nullIfNotExists);
583
ProjectXmlUtilities
.SetOrRemoveAttribute(XmlElement, name, value);
599
ProjectXmlUtilities
.SetOrRemoveAttribute(XmlElement, name, value);
Construction\ProjectElementContainer.cs (1)
448
ProjectXmlUtilities
.SetOrRemoveAttribute(XmlElement, child.XmlElement.Name, value);
Construction\ProjectTargetElement.cs (2)
11
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
270
XmlAttributeWithLocation returnsAttribute =
ProjectXmlUtilities
.SetOrRemoveAttribute(
Construction\ProjectUsingTaskBodyElement.cs (2)
9
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
162
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Construction\UsingTaskParameterGroupElement.cs (2)
9
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
130
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Evaluation\ProjectParser.cs (59)
12
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
144
if (!
ProjectXmlUtilities
.VerifyValidProjectNamespace(element))
159
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
211
if (
ProjectXmlUtilities
.ThrowIfProjectInvalidChildElement(childElement.Name, childElement.ParentNode.Name, childElement.Location, _ParserIgnoreConfiguration))
226
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration);
230
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
232
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericPropertyElement);
250
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration);
254
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
306
ProjectXmlUtilities
.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]);
333
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
346
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
406
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericMetadataElement);
434
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration);
438
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
474
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnImport, _ParserIgnoreConfiguration);
475
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.project);
476
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(element, _ParserIgnoreConfiguration);
482
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdk, nullIfNotExists: true),
483
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdkVersion, nullIfNotExists: true),
484
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdkMinimumVersion, nullIfNotExists: true));
496
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration);
501
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
506
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
510
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskParameter, _ParserIgnoreConfiguration, XMakeElements.usingTaskParameter);
528
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnUsingTask, _ParserIgnoreConfiguration);
542
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyName);
543
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyFile);
550
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
559
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
568
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
571
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskBody, _ParserIgnoreConfiguration, ParserIgnoreConfiguration.GenericUsingTaskBodyElement);
577
if (
ProjectXmlUtilities
.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration))
596
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnTarget, _ParserIgnoreConfiguration);
597
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.name);
600
string targetName = EscapingUtilities.UnescapeAll(
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.name));
611
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
638
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnOnError, _ParserIgnoreConfiguration);
639
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(childElement, XMakeAttributes.executeTargets);
640
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(childElement, _ParserIgnoreConfiguration);
688
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
713
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnOutput, _ParserIgnoreConfiguration);
714
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.taskParameter);
715
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(element, _ParserIgnoreConfiguration);
726
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, itemNameAttribute, XMakeAttributes.itemName);
727
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, propertyNameAttribute, XMakeAttributes.propertyName);
739
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel, _ParserIgnoreConfiguration);
743
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
772
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
787
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
792
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
807
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration);
817
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
836
if (
ProjectXmlUtilities
.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration))
857
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.condition);
871
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration);
885
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
908
if (
ProjectXmlUtilities
.ThrowIfProjectInvalidChildElement(childElement.Name, element.Name, element.Location, _ParserIgnoreConfiguration))
927
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element, _ParserIgnoreConfiguration);
Instance\TaskRegistry.cs (2)
23
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
323
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(projectUsingTaskXml.XmlElement, projectUsingTaskXml.ContainingProject.ProjectRootElementCache.ParserIgnoreConfiguration);