You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

法语Windows系统下强制dotnet CLI使用英文输出的方法

强制将dotnet CLI输出切换为英文(保持Windows法语界面)

Hey there! I totally get wanting to keep your Windows interface in French while using English for all your dev tools—this is such a common setup for developers. Let’s get that dotnet CLI output switched to English right away.

临时生效(单次终端会话)

If you just want to test this out quickly without making permanent changes, you can set an environment variable for your current terminal session:

  • Command Prompt: Run this first before any dotnet commands:
    set DOTNET_CLI_UI_LANGUAGE=en
    
  • PowerShell: Use this command instead:
    $env:DOTNET_CLI_UI_LANGUAGE="en"
    

After running this, any subsequent dotnet commands in that terminal will output in English. This resets when you close the terminal.

永久生效(所有终端会话)

To make this change stick across all future terminal sessions (and even Visual Studio’s integrated terminal), set a system-wide environment variable:

  1. Open Windows Settings (in French, that’s Paramètres), search for "variables d'environnement" (environment variables).
  2. In the system properties window, go to the Variables d'environnement (Environment Variables) section.
  3. Under Variables système (System Variables), click Nouvelle (New).
  4. Enter DOTNET_CLI_UI_LANGUAGE as the variable name, and en as the variable value.
  5. Save all changes, then restart any open terminals or Visual Studio instances. From now on, your dotnet CLI will always output in English, while your Windows interface stays in French.

This setting only affects the dotnet CLI’s output language, so it won’t touch any other parts of your Windows system—perfect for your use case!

内容的提问来源于stack exchange,提问作者Martin Plante

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 03:55:22