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