17 references to PreserveFormatting
Microsoft.Build (5)
Construction\ProjectRootElement.cs (4)
1641
RootLink.ReloadFrom(path, throwIfUnsavedChanges, preserveFormatting ??
PreserveFormatting
);
1666
/// Whether the reload should preserve formatting or not. A null value causes the reload to reuse the existing <see cref="
PreserveFormatting
"/> value.
1672
RootLink.ReloadFrom(reader, throwIfUnsavedChanges, preserveFormatting ??
PreserveFormatting
);
1693
XmlDocumentWithLocation newDocument = documentProducer(preserveFormatting ??
PreserveFormatting
);
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
66
/// Access to remote <see cref="ProjectRootElement.
PreserveFormatting
"/>.
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ProjectRootElement_Tests.cs (9)
1291
Assert.True(xml0.
PreserveFormatting
);
1294
Assert.False(xml1.
PreserveFormatting
);
1298
Assert.False(xml2.
PreserveFormatting
);
1323
Assert.Equal(initialPreserveFormatting, projectElement.
PreserveFormatting
);
1326
Assert.Equal(expectedFormattingAfterReload, projectElement.
PreserveFormatting
);
1330
Assert.Equal(initialPreserveFormatting, projectElement.
PreserveFormatting
);
1333
Assert.Equal(expectedFormattingAfterReload, projectElement.
PreserveFormatting
);
1337
Assert.Equal(initialPreserveFormatting, projectElement.
PreserveFormatting
);
1340
Assert.Equal(expectedFormattingAfterReload, projectElement.
PreserveFormatting
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
534
Assert.Equal(realXml.
PreserveFormatting
, viewXml.
PreserveFormatting
);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
41
public bool PreserveFormatting => this.ProjectXml.
PreserveFormatting
;