Compartir a través de


ToolTask.StandardOutputEncoding Property

Gets the Encoding of the standard output stream of the task.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property StandardOutputEncoding As Encoding
protected virtual Encoding StandardOutputEncoding { get; }
protected:
virtual property Encoding^ StandardOutputEncoding {
    Encoding^ get ();
}
abstract StandardOutputEncoding : Encoding with get 
override StandardOutputEncoding : Encoding with get
function get StandardOutputEncoding () : Encoding

Property Value

Type: System.Text.Encoding
The Encoding of the response file.

Remarks

Console-based output uses the current system OEM code page by default. 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).

.NET Framework Security

See Also

Reference

ToolTask Class

Microsoft.Build.Utilities Namespace