3 writes to _xml
Microsoft.Build (3)
Definition\ProjectItem.cs (3)
113
this.
_xml
= xml;
137
_xml
= xml;
825
_xml
= _xml.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped);
28 references to _xml
Microsoft.Build (28)
Definition\ProjectItem.cs (28)
159
{ return
_xml
; }
169
{ return
_xml
.ItemType; }
191
return
_xml
.Include;
251
bool isImported = !Object.ReferenceEquals(
_xml
.ContainingProject, _project.Xml);
583
Project.VerifyThrowInvalidOperationNotImported(
_xml
.ContainingProject);
588
ErrorUtilities.VerifyThrowInvalidOperation(
_xml
.Parent?.Parent != null, "OM_ObjectIsNoLongerActive");
592
_project.SplitItemElementIfNecessary(
_xml
);
604
ProjectMetadataElement metadatumXml =
_xml
.AddMetadata(name, unevaluatedValue);
618
var siblingItems = _project.Items.Where(i => i.
_xml
==
_xml
);
645
Project.VerifyThrowInvalidOperationNotImported(
_xml
.ContainingProject);
646
ErrorUtilities.VerifyThrowInvalidOperation(
_xml
.Parent?.Parent != null, "OM_ObjectIsNoLongerActive");
657
_project.SplitItemElementIfNecessary(
_xml
);
662
_xml
.RemoveChild(metadatum.Xml);
695
Project.VerifyThrowInvalidOperationNotImported(
_xml
.ContainingProject);
696
ErrorUtilities.VerifyThrowInvalidOperation(
_xml
.Parent?.Parent != null, "OM_ObjectIsNoLongerActive");
705
if (
_xml
.Count == 0 /* no metadata */ && _project.IsSuitableExistingItemXml(
_xml
, name, null /* no metadata */) && !FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(name))
715
bool splitOccurred = _project.SplitItemElementIfNecessary(
_xml
);
717
_xml
.Include = name;
725
_evaluatedIncludeEscaped = _project.ExpandItemIncludeBestEffortLeaveEscaped(
_xml
);
791
Project.VerifyThrowInvalidOperationNotImported(
_xml
.ContainingProject);
792
ErrorUtilities.VerifyThrowInvalidOperation(
_xml
.Parent?.Parent != null, "OM_ObjectIsNoLongerActive");
799
_project.SplitItemElementIfNecessary(
_xml
);
806
_xml
.ChangeItemType(newItemType);
823
ProjectItemElement oldXml =
_xml
;
825
_xml =
_xml
.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped);
827
oldXml.Parent.InsertBeforeChild(
_xml
, oldXml);