ToolTask.StandardOutputEncoding 属性

定义

可重写的属性,用于指定捕获的任务标准输出流的编码值Overridable property specifying the encoding of the captured task standard output stream

protected:
 virtual property System::Text::Encoding ^ StandardOutputEncoding { System::Text::Encoding ^ get(); };
protected virtual System.Text.Encoding StandardOutputEncoding { get; }
member this.StandardOutputEncoding : System.Text.Encoding
Protected Overridable ReadOnly Property StandardOutputEncoding As Encoding

属性值

Encoding

响应文件的 EncodingThe Encoding of the response file.

注解

默认情况下,基于控制台的输出使用当前系统 OEM 代码页。Console-based output uses the current system OEM code page by default. 请注意,我们不应在此处使用 OutputEncoding,因为我们运行的进程与控制台窗口 (和 Console 并不完全相同。如果承载 MSBuild 的正在运行的应用程序不是控制台应用程序) ,则 OutputEncoding 不会返回 OEM 代码页。Note that we should not use Console.OutputEncoding here since processes we run don't really have much to do with our console window (and also Console.OutputEncoding doesn't return the OEM code page if the running application that hosts MSBuild is not a console application).

适用于