之前在vscode上调试.net core 2.0项目时输出窗口一直是乱码,查了很多资料无法解决
最终在github找到了解决办法 -> https://github.com/OmniSharp/omnisharp-vscode/issues/1775
1 { 2 ????"version": "0.1.0", 3 ????"command": "dotnet", 4 ????"isShellCommand": true, 5 ????"args": [], 6 ????"tasks": [ 7 ????????{ 8 ????????????"taskName": "build", 9 ????????????"command": "cmd",10 ????????????"suppressTaskName": true,11 ????????????"args": [12 ????????????????"/c chcp 65001 >nul && dotnet build ${workspaceRoot}/Maybe.csproj" ??13 ????????????],14 ????????????"isBuildCommand": true,15 ????????????"problemMatcher": "$msCompile"16 ????????}17 ????]18 }
修改Task.json配置文件可解决此问题
vscode 调试.net core 2.0 输出乱码解决方法
原文地址:http://www.cnblogs.com/duihuayuqiu/p/7644690.html