Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Last active August 31, 2017 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masaru-b-cl/6d7fab260dbc409f961e889016503ecd to your computer and use it in GitHub Desktop.
Save masaru-b-cl/6d7fab260dbc409f961e889016503ecd to your computer and use it in GitHub Desktop.
Visual Studio Codeタスクのdotnetコマンド出力を文字化けしないようにする ref: http://qiita.com/masaru_b_cl/items/705b75d256b11cb82feb
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"windows": { // Windows固有の設定
"command": "cmd", // cmd.exeを実行
"args": [ "/C", "chcp 65001 && dotnet"] // /Cオプションで第二引数のコマンドを実行
}, // chcp 65001 の後に && で続けてdotnetを実行するよう指定
"tasks": [
{
"taskName": "build",
"args": [
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment