17 references to PreserveFormatting
Microsoft.Build (5)
Construction\ProjectRootElement.cs (4)
1663RootLink.ReloadFrom(path, throwIfUnsavedChanges, preserveFormatting ?? PreserveFormatting); 1688/// Whether the reload should preserve formatting or not. A null value causes the reload to reuse the existing <see cref="PreserveFormatting"/> value. 1694RootLink.ReloadFrom(reader, throwIfUnsavedChanges, preserveFormatting ?? PreserveFormatting); 1715XmlDocumentWithLocation 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)
1304Assert.True(xml0.PreserveFormatting); 1307Assert.False(xml1.PreserveFormatting); 1311Assert.False(xml2.PreserveFormatting); 1336Assert.Equal(initialPreserveFormatting, projectElement.PreserveFormatting); 1339Assert.Equal(expectedFormattingAfterReload, projectElement.PreserveFormatting); 1343Assert.Equal(initialPreserveFormatting, projectElement.PreserveFormatting); 1347Assert.Equal(expectedFormattingAfterReload, projectElement.PreserveFormatting); 1351Assert.Equal(initialPreserveFormatting, projectElement.PreserveFormatting); 1354Assert.Equal(expectedFormattingAfterReload, projectElement.PreserveFormatting);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
534Assert.Equal(realXml.PreserveFormatting, viewXml.PreserveFormatting);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
41public bool PreserveFormatting => this.ProjectXml.PreserveFormatting;