From 6454d45a05ab370e100c01c019507f3c127b9ebc Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Tue, 3 Jan 2023 12:24:58 +0100 Subject: [PATCH 1/2] Set process dotnet cli language to en-US --- Build/Build.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Build/Build.cs b/Build/Build.cs index 7c2fb7b539..7e32861b72 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -140,6 +140,7 @@ class Build : NukeBuild DotNetTest(s => s .SetConfiguration("Debug") + .SetProcessEnvironmentVariable("DOTNET_CLI_UI_LANGUAGE", "en-us") .EnableNoBuild() .SetDataCollector("XPlat Code Coverage") .SetResultsDirectory(TestResultsDirectory) @@ -194,6 +195,7 @@ class Build : NukeBuild DotNetTest(s => s .SetConfiguration("Debug") + .SetProcessEnvironmentVariable("DOTNET_CLI_UI_LANGUAGE", "en-us") .EnableNoBuild() .SetDataCollector("XPlat Code Coverage") .SetResultsDirectory(TestResultsDirectory) From 5f546809d90edea51e7966077466d58acebbc9ca Mon Sep 17 00:00:00 2001 From: Lukas Gasselsberger Date: Tue, 3 Jan 2023 20:30:39 +0100 Subject: [PATCH 2/2] Use `en-US` as default cli language for the whole NUKE process --- Build/Build.cs | 2 -- build.ps1 | 1 + build.sh | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/Build.cs b/Build/Build.cs index 7e32861b72..7c2fb7b539 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -140,7 +140,6 @@ class Build : NukeBuild DotNetTest(s => s .SetConfiguration("Debug") - .SetProcessEnvironmentVariable("DOTNET_CLI_UI_LANGUAGE", "en-us") .EnableNoBuild() .SetDataCollector("XPlat Code Coverage") .SetResultsDirectory(TestResultsDirectory) @@ -195,7 +194,6 @@ class Build : NukeBuild DotNetTest(s => s .SetConfiguration("Debug") - .SetProcessEnvironmentVariable("DOTNET_CLI_UI_LANGUAGE", "en-us") .EnableNoBuild() .SetDataCollector("XPlat Code Coverage") .SetResultsDirectory(TestResultsDirectory) diff --git a/build.ps1 b/build.ps1 index b3a8824d33..f21bd6129c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -25,6 +25,7 @@ $env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 $env:DOTNET_MULTILEVEL_LOOKUP = 0 $env:DOTNET_ROLL_FORWARD = "Major" $env:NUKE_TELEMETRY_OPTOUT = 1 +$env:DOTNET_CLI_UI_LANGUAGE = "en-US" ########################################################################### # EXECUTION diff --git a/build.sh b/build.sh index f5bf05e1c4..d691404685 100755 --- a/build.sh +++ b/build.sh @@ -21,6 +21,7 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 export DOTNET_MULTILEVEL_LOOKUP=0 export DOTNET_ROLL_FORWARD="Major" export NUKE_TELEMETRY_OPTOUT=1 +export DOTNET_CLI_UI_LANGUAGE="en-US" ########################################################################### # EXECUTION