54 references to Xml
dotnet-openapi (1)
ProjectExtensions.cs (1)
17
item.
Xml
.AddMetadata(kvp.Key, kvp.Value, expressAsAttribute: true);
Microsoft.Build (16)
Definition\Project.cs (10)
1683
if (item.
Xml
== itemElement)
2755
.SkipWhile(i => i != item.
Xml
)
2766
return [item.
Xml
, .. relevantElementsAfterInclude];
3404
if (item.
Xml
== itemElement)
3638
if (item.Project == null || item.
Xml
.Parent == null)
3647
VerifyThrowInvalidOperationNotImported(item.
Xml
.ContainingProject);
3649
SplitItemElementIfNecessary(item.
Xml
);
3651
ProjectElementContainer parent = item.
Xml
.Parent;
3653
item.
Xml
.Parent.RemoveChild(item.
Xml
);
Definition\ProjectItem.cs (1)
862
value = BuiltInMetadata.GetMetadataValueEscaped(_project.DirectoryPath, _evaluatedIncludeBeforeWildcardExpansionEscaped, _evaluatedIncludeEscaped, this.
Xml
.ContainingProject.FullPath, name, ref _fullPath);
Instance\ProjectInstance.cs (4)
408
this.EvaluatedItemElements.Add(item.
Xml
);
484
EvaluatedItemElements.Add(item.
Xml
);
3360
item.
Xml
.ContainingProject.EscapedFullPath,
3419
item.
Xml
.ContainingProject.EscapedFullPath,
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemLink.cs (1)
24
/// Access to remote <see cref="ProjectItem.
Xml
"/>.
Microsoft.Build.Engine.OM.UnitTests (35)
Construction\ConstructionEditing_Tests.cs (1)
2327
item.
Xml
.Condition = "false";
Construction\ProjectItemElement_Tests.cs (3)
961
item.
Xml
.Condition = "false";
977
item.
Xml
.Include = "i2";
993
item.
Xml
.Exclude = "i1";
Definition\DefinitionEditing_Tests.cs (17)
474
ProjectItemElement item2 = project.AddItem("i", "i1.xxx")[0].
Xml
;
531
0].
Xml
;
561
ProjectItemElement item2 = project.AddItem("i", @"c:\subdir1\a\b\c\i1.xyx")[0].
Xml
;
899
Assert.True(object.ReferenceEquals(item.
Xml
, newItemElement));
927
Assert.True(object.ReferenceEquals(item.
Xml
, newItemElement));
953
Assert.True(object.ReferenceEquals(item.
Xml
, newItemElement));
1190
Assert.True(object.ReferenceEquals(itemGroupElement, item.
Xml
.Parent));
1211
item0.
Xml
.Exclude = "e";
1284
Assert.True(object.ReferenceEquals(itemGroupElement, item.
Xml
.Parent));
1285
Assert.True(object.ReferenceEquals(itemGroupElement, Helpers.GetFirst(project.GetItems("i")).
Xml
.Parent));
1638
item.
Xml
.Parent.RemoveAllChildren();
1653
item.
Xml
.Parent.RemoveAllChildren();
1955
Assert.True(object.ReferenceEquals(items[0].
Xml
, items[1].
Xml
));
2395
ProjectItemElement item2 = project.AddItemFast("i", "i1.xxx")[0].
Xml
;
2448
NativeMethodsShared.IsWindows ? @"c:\subdir1\a\b\subdir2\c\i1.xyx" : "/subdir1/a/b/subdir2/c/i1.xyx")[0].
Xml
;
2478
ProjectItemElement item2 = project.AddItemFast("i", @"c:\subdir1\a\b\c\i1.xyx")[0].
Xml
;
Definition\Project_Tests.cs (1)
1770
project.Xml.RawXml.ShouldNotContain(itemToRemove.
Xml
.Include);
Definition\ProjectItem_Tests.cs (8)
101
Assert.NotNull(item.
Xml
);
1881
Assert.Equal(0, Helpers.Count(item.
Xml
.Metadata));
1903
Assert.Equal(0, item.
Xml
.Count);
1972
Assert.Equal("i2", item.
Xml
.Include);
2191
Assert.Single(item.
Xml
.Metadata);
2193
ProjectMetadataElement metadataElement = item.
Xml
.Metadata.FirstOrDefault();
2245
var metadataElements = items.First().
Xml
.Metadata;
2301
var metadataElements = items.First().
Xml
.Metadata;
Definition\ProtectImports_Tests.cs (2)
529
Assert.Equal(_importFilename, item.
Xml
.ContainingProject.FullPath); // "Item was not found in the imported project."
636
Assert.Null(item.
Xml
.ContainingProject.FullPath); // "Item was not found in the project." // null because XML is in-memory
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
216
Verify(view.
Xml
, real.
Xml
);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (1)
23
public MockProjectItemElementLinkRemoter Xml => (MockProjectItemElementLinkRemoter)this.OwningCollection.ExportElement(this.Source.
Xml
);
Microsoft.Build.Engine.UnitTests (2)
Definition\ProjectItem_Tests.cs (1)
30
ProjectItemFactory factory = new ProjectItemFactory(item1.Project, item1.
Xml
);
Evaluation\Evaluator_Tests.cs (1)
1479
ProjectRootElement importXml = ProjectRootElement.Open(project.Items.ElementAt(0).
Xml
.ContainingProject.FullPath);