之前在vscode上调试.net core 2.0项目时输出窗口一直是乱码,查了很多资料无法解决
最终在github找到了解决办法 -> https://github.com/OmniSharp/omnisharp-vscode/issues/1775
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "build",
"command": "cmd",
"suppressTaskName": true,
"args": [
"/c chcp 65001 >nul && dotnet build ${workspaceRoot}/Maybe.csproj"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
}
]
}
修改Task.json配置文件可解决此问题