ProjectRootElement.Encoding Property

Definition

Encoding that the project file is saved in, or will be saved in, unless otherwise specified.

C#
public System.Text.Encoding Encoding { get; }

Property Value

The character encoding that the project file is to be saved in.

Remarks

Returns the encoding from the Xml declaration if any, otherwise UTF8.

Applies to

製品 バージョン
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17