73 references to ProjectXmlUtilities
Microsoft.Build (73)
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)
8
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
167
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Construction\UsingTaskParameterGroupElement.cs (2)
9
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
136
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(parent.XmlElement, "TaskFactory");
Evaluation\ProjectParser.cs (59)
11
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
140
if (!
ProjectXmlUtilities
.VerifyValidProjectNamespace(element))
155
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
207
ProjectXmlUtilities
.ThrowProjectInvalidChildElement(childElement.Name, childElement.ParentNode.Name, childElement.Location);
218
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel);
222
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
224
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnlyConditionAndLabel);
242
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel);
246
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
298
ProjectXmlUtilities
.VerifyThrowProjectInvalidAttribute(exclude.Length == 0 || include.Length > 0, (XmlAttributeWithLocation)element.Attributes[XMakeAttributes.exclude]);
323
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
335
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
395
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel);
423
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel);
427
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
456
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnImport);
457
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.project);
458
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(element);
464
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdk, nullIfNotExists: true),
465
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdkVersion, nullIfNotExists: true),
466
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.sdkMinimumVersion, nullIfNotExists: true));
478
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element);
483
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
488
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
492
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskParameter);
510
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnUsingTask);
524
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyName);
525
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, XMakeAttributes.assemblyFile);
532
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
541
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
550
ProjectXmlUtilities
.ThrowProjectInvalidChildElementDueToDuplicate(childElement);
553
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnUsingTaskBody);
559
ProjectXmlUtilities
.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location);
574
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnTarget);
575
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.name);
578
string targetName = EscapingUtilities.UnescapeAll(
ProjectXmlUtilities
.GetAttributeValue(element, XMakeAttributes.name));
589
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
616
ProjectXmlUtilities
.VerifyThrowProjectAttributes(childElement, ValidAttributesOnOnError);
617
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(childElement, XMakeAttributes.executeTargets);
618
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(childElement);
666
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
683
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnOutput);
684
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.taskParameter);
685
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(element);
696
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, itemNameAttribute, XMakeAttributes.itemName);
697
ProjectXmlUtilities
.VerifyThrowProjectAttributeEitherMissingOrNotEmpty(element, propertyNameAttribute, XMakeAttributes.propertyName);
709
ProjectXmlUtilities
.VerifyThrowProjectAttributes(element, ValidAttributesOnlyConditionAndLabel);
713
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
740
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
752
ProjectXmlUtilities
.ThrowProjectInvalidAttribute(attribute);
756
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
771
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element);
781
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
800
ProjectXmlUtilities
.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location);
817
ProjectXmlUtilities
.VerifyThrowProjectRequiredAttribute(element, XMakeAttributes.condition);
831
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element);
845
foreach (XmlElementWithLocation childElement in
ProjectXmlUtilities
.GetVerifyThrowProjectChildElements(element))
868
ProjectXmlUtilities
.ThrowProjectInvalidChildElement(childElement.Name, element.Name, element.Location);
883
ProjectXmlUtilities
.VerifyThrowProjectNoAttributes(element);
Instance\TaskRegistry.cs (2)
24
using ProjectXmlUtilities = Microsoft.Build.Internal.
ProjectXmlUtilities
;
332
ProjectXmlUtilities
.VerifyThrowProjectNoChildElements(projectUsingTaskXml.XmlElement);
Xml\ProjectXmlUtilities.cs (1)
187
ProjectXmlUtilities
.VerifyThrowProjectInvalidAttribute(validAttributes.Contains(attribute.Name), attribute);