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