vscode 调试.net core 2.0 输出乱码解决方法


之前在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配置文件可解决此问题

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM