dotnet test doesn't respect DOTNET_CLI_UI_LANGUAGE env variable
See original GitHub issuedotnet --info
obeys the environment variable, but dotnet test
doesn’t.
Steps to reproduce
I have 1251 as system default, and I want to enforce en-US for automated grepping of the test results. So your setup nessesary for issue reproduction can differ
$ export DOTNET_CLI_UI_LANGUAGE=en-US
$ echo $DOTNET_CLI_UI_LANGUAGE en-US
Expected behavior
$ dotnet test Auth.Test Build starter, please wait…
Actual behavior
$ dotnet test Auth.Test Сборка начата, подождите… Попытка отменить сборку… Попытка отменить сборку… Попытка отменить сборку… Попытка отменить сборку…
Environment data
dotnet --info
output:
$ dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.1.300 Commit: adab45bf0c
Runtime Environment: OS Name: Windows OS Version: 6.3.9600 OS Platform: Windows RID: win81-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.300\
Host (useful for support): Version: 2.1.0 Commit: caa7b7e2ba
.NET Core SDKs installed: 2.1.200 [C:\Program Files\dotnet\sdk] 2.1.201 [C:\Program Files\dotnet\sdk] 2.1.300 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
PS: You can notice that dotnet --info respects the environmental variable.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top GitHub Comments
I’m willing to consider supporting
DOTNET_CLI_UI_LANGUAGE
in MSBuild – @cdmihai what do you think? Good idea/bad idea?I think there may also be a change needed in vstest. I just commented on https://github.com/Microsoft/vstest/issues/821
cc @smadala