Visual Studio Code for .Net Framework


如何再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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM