【发布时间】:2017-09-21 23:57:45
【问题描述】:
我正在尝试在 Visual Studio Code 中调试控制台应用程序。我已经尝试了很多方法来达到这一点,但现在我无法弄清楚这意味着什么。
${workspaceRoot}/bin/Debug/<insert-target-framework-here>/<insert-project-name-here>.dll
在launch.json下
.NET Core launch (console).
作为:“程序”的值
我知道 ${workspaceRoot} 在哪里,但我不知道我的项目目标框架是什么或如何弄清楚,而且我的工作空间根目录中没有 bin 文件。
这里是调试配置文件:
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceRoot}/bin/Debug/<insert-target-framework-here>/<insert-project-name-here>.dll",
"args": [],
"cwd": "${workspaceRoot}",
"stopAtEntry": false,
"console": "internalConsole"
【问题讨论】:
-
您遇到了什么问题?仅供参考,不,
.dll不是 C# 程序 -
我在所有其他 c# Visual Studio 代码调试教程中都看到了这个。
-
错误是什么?你有什么问题?你不知道
target-framework和project-name应该放什么吗?