19 writes to OutputEncoding
csc (2)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (2)
25Console.OutputEncoding = s_utf8Encoding; 32Console.OutputEncoding = savedEncoding;
dotnet-getdocument (1)
src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
dotnet-svcutil-lib (1)
Tool.cs (1)
445Console.OutputEncoding = Encoding.UTF8;
GetDocument.Insider (1)
ProgramBase.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (1)
82Console.OutputEncoding = Encoding.UTF8;
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
939Console.OutputEncoding = originalOutputEncoding;
Microsoft.Build.Framework (1)
EncodingUtilities.cs (1)
275Console.OutputEncoding = Encoding.UTF8;
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (2)
25Console.OutputEncoding = s_utf8Encoding; 32Console.OutputEncoding = savedEncoding;
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
140Console.OutputEncoding = OutputEncoding;
MSBuild (4)
AutomaticEncodingRestorer.cs (1)
55Console.OutputEncoding = _originalOutputEncoding;
TerminalLogger\Terminal.cs (2)
75Console.OutputEncoding = Encoding.UTF8; 205Console.OutputEncoding = _originalOutputEncoding;
XMake.cs (1)
1918Console.OutputEncoding = Encoding.UTF8;
vbc (2)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (2)
25Console.OutputEncoding = s_utf8Encoding; 32Console.OutputEncoding = savedEncoding;
VBCSCompiler (2)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (2)
25Console.OutputEncoding = s_utf8Encoding; 32Console.OutputEncoding = savedEncoding;
12 references to OutputEncoding
csc (1)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (1)
22Encoding savedEncoding = Console.OutputEncoding;
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (2)
99if ((System.Console.OutputEncoding.CodePage != Encoding.UTF8.CodePage) && 100(System.Console.OutputEncoding.CodePage != Thread.CurrentThread.CurrentUICulture.TextInfo.OEMCodePage))
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
916var originalOutputEncoding = Console.OutputEncoding; 928Assert.Equal(65001, Console.OutputEncoding.CodePage); // UTF-8 enabled for correct rendering.
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (1)
22Encoding savedEncoding = Console.OutputEncoding;
MSBuild (3)
AutomaticEncodingRestorer.cs (1)
33_originalOutputEncoding = Console.OutputEncoding;
TerminalLogger\Terminal.cs (1)
74_originalOutputEncoding = Console.OutputEncoding;
XMake.cs (1)
1933codepage = Console.OutputEncoding.CodePage;
System.Console (1)
System\Console.cs (1)
242encoding: OutputEncoding.RemovePreamble(), // This ensures no prefix is written to the stream.
vbc (1)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (1)
22Encoding savedEncoding = Console.OutputEncoding;
VBCSCompiler (1)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (1)
22Encoding savedEncoding = Console.OutputEncoding;