error를 해결하려면 한글보다는 영어 표기가 stackoverflow에서 검색시 답글이 많이 나온다.
그런데 이런저런 설정을 해도 vscode에서 dotnet 관련 메세지는 한글이 나온다. 이 때 해결하는 방법이다.
이 때는 PowerShell의 Locale 설정을 다음과 같이 바꾸어 준다. 는 인터넷 글은 틀린 것이고,
dotnet language 언어설정은 별도 지정으로 시스템 언어와 별개 세팅이 필요하다.
현재 설정_점검
현재 윈도우 언어 설정은 다음으로 확인하고
get-culture
비록 한글로 설정되어 있어도, dotnet의 display language는 별도 설정가능하다
*괜히 인터넷 글 따라하면서, locale 설정을 변경하지 않아도 된다.
(나의 현재 설정) 그런데 위에 dotnet build시 영어로 표기 잘됨
dotnet language 적용방법
# for CMD
DOTNET_CLI_UI_LANGUAGE=en
# for PowerShell
$Env:DOTNET_CLI_UI_LANGUAGE = "en"
# >> Needed or NOT
delete or rename folder of your language in "dotnet-install-directory\sdk\sdk-version"
C:\Program Files\dotnet\sdk\7.0.202\kr
C:\Program Files\dotnet\sdk\6.0.407\kr
<적용전 vscode terminal>
<적용후 vscode terminal>
https://blog.keenthinker.com/change-the-net-core-display-language
Change the .NET Core display language
Habits and languages We all have our habits. It also affects those of us who write software. A habit of many programmers is the display language of the programming language. We are used to reading the compiler's messages in a certain language! And t...
blog.keenthinker.com
https://stackoverflow.com/questions/50217208/force-dotnet-cli-in-english-on-a-french-windows
Force dotnet CLI in English on a French Windows
I'm French, and like to have the Windows UI in French, but all my dev tools in English. The dotnet CLI tool displays its output in French, and I'd like to force it to English. Is it possible?
stackoverflow.com
_