Visual Studio Code for .Net Framework
阿新 • • 發佈:2020-07-21
如何再vscode除錯net framework程式(非netcore)
launch.json 配置如下:
{ "version": "0.2.0", "configurations": [ { "name": "MyLauncher", //偵錯程式名稱 "type":"clr", //解析命令 "request": "launch", "preLaunchTask": "mybuild", //除錯任務 "program": "${workspaceFolder}/bin/Debug/MusicPlayer.exe", //程式地址 "args":[], "console": "internalConsole", "stopAtEntry": false, "internalConsoleOptions": "openOnSessionStart" } ] }
tasks.json 配置如下:
{ "version": "2.0.0", "tasks": [ { "label": "mybuild", //任務名稱 "command":"${workspaceFolder}/bin/Debug/MusicPlayer.exe", //程式地址 "type":"shell", "args":[ "MusicPlayer.csproj", //專案配置檔案 "/t:Build", "/p:Configuration=Debug", "/p:Platform=\"AnyCPU\"" ] } ] }
參考地址: https://stackoverflow.com/questions/47707095/visual-studio-code-for-net-framework