launch: program ‘launch: launch.json must be configured. Change ‘program‘ to the path to the executable file that you would like to debug.
遇到上述错误是因为launch.json program 路径没有配置
原始:
"program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
修改后:
"program": "${workspaceRoot}/bin/Debug/netcoreapp1.1/netcore.dll",
打开Debug文件夹netcoreapp1.1 代替 <target-framework> ,netcore.dll 替换 <project-name.dll>即可
访问效果如下
时间: 2024-10-12 13:40:35