【发布时间】:2017-12-17 12:09:56
【问题描述】:
在构建我的 C# 项目时,如何在 VS Code 中切换到发布配置?
现在我使用Ctrl+F5 或Debug -> Start Without Debugging 启动我的应用程序,这也构建了它,但这只会在bin/Debug 创建一个调试版本。 VS Code 中没有Build 菜单。
这是我的 tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"taskName": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/dotnetcore-test.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
【问题讨论】:
标签: c# visual-studio-code