From eb9a3c971e4e031c5de871b3906347ee7d618145 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Date: Fri, 13 Sep 2019 10:39:13 +0200 Subject: [PATCH] Added the encoding option for NUnit3 --- Source/MSBuild.Community.Tasks/NUnit3.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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(); }