Home > Back-end >  Disable emojis in dotnet watch run
Disable emojis in dotnet watch run

Time:05-21

I upgraded to .NET SDK 6.0.300. When running dotnet watch run, the logs show emojis.

How do I disable this behaviour?

CodePudding user response:

The answer is this environment variable:

DOTNET_WATCH_SUPPRESS_EMOJIS=1

Example: from the shell:

DOTNET_WATCH_SUPPRESS_EMOJIS=1 dotnet watch run

Example: in vscode's tasks.json:

{
    "label": "watch",
    "type": "process",
    "command": "dotnet",
    "args": [
        "watch",
        "run"
    ],
    "options": {
        "env": {
            "DOTNET_WATCH_SUPPRESS_EMOJIS": "1"            // <--------
        }
    },
    "problemMatcher": "$msCompile"
}
  • Related