15 references to Encoding
Microsoft.Build (5)
Construction\ProjectRootElement.cs (4)
558using (var stringWriter = new EncodingStringWriter(Encoding)) 1499Save(Encoding); 1527if (HasUnsavedChanges || !Equals(saveEncoding, Encoding)) 1568Save(path, Encoding);
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
56/// Access to remote <see cref="ProjectRootElement.Encoding"/>.
Microsoft.Build.Engine.OM.UnitTests (10)
Construction\ProjectRootElement_Tests.cs (7)
711Assert.Equal(Encoding.Unicode, project.Encoding); 717Assert.Equal(Encoding.UTF8, project.Encoding); 723Assert.Equal(Encoding.ASCII, project.Encoding); 1922Assert.Equal(encoding, project.Encoding); // "Changing an unmodified project's encoding failed to update ProjectRootElement.Encoding." 1940Assert.Equal(encoding.CodePage, project.Encoding.CodePage); 1941Assert.Equal(encoding.EncodingName, project.Encoding.EncodingName); 1955Assert.Equal(encoding.WebName, project.Encoding.WebName);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
527Assert.Equal(realXml.Encoding, viewXml.Encoding);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
39public Encoding Encoding => this.ProjectXml.Encoding; // !! more complicated in reality when passing cross process.