ToolTask.UseUtf8Encoding Property

Definition

Whether or not to use UTF8 encoding for the cmd file and console window. Values: Always, Never, Detect If set to Detect, the current code page will be used unless it cannot represent the Command string. In that case, UTF-8 is used.

C#
public string UseUtf8Encoding { get; set; }

Property Value

Applies to

Product Versions
MSBuild 16, 17
MSBuild (.NET Core) 16, 17