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://*.com/questions/47707095/visual-studio-code-for-net-framework

Visual Studio Code for .Net Framework

上一篇:JS内存机制


下一篇:fastjson配置序列化过滤转换