diff --git a/Source/MSBuild.Community.Tasks/NUnit3.cs b/Source/MSBuild.Community.Tasks/NUnit3.cs index 2ffa9dbe..5cfe4f37 100644 --- a/Source/MSBuild.Community.Tasks/NUnit3.cs +++ b/Source/MSBuild.Community.Tasks/NUnit3.cs @@ -335,6 +335,18 @@ public string InternalTrace set { _trace = value; } } + private string _encoding; + + /// + /// The --encoding option may be used to specify the console codepage, such as utf-8, ascii etc. + /// + /// + public string Encoding + { + get { return _encoding; } + set { _encoding = value; } + } + private bool _noHeader; /// @@ -441,6 +453,8 @@ protected override string GenerateCommandLineCommands() builder.AppendSwitchIfNotNull(c+"trace=", _trace); + builder.AppendSwitchIfNotNull(c+"encoding=", _encoding); + return builder.ToString(); }