我正在尝试设置我的Visual Studio代码以在运行时构建多个dotnet项目。
我的task.json:
bind(DashboardView.class).to(DashboardViewImpl.class).in(Singleton.class);
这很有效。但是,当我添加这个:
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "build_task",
"suppressTaskName": true,
"args": [
"build", "${workspaceRoot}/main/project.json", "-o", "${workspaceRoot}/obj/", "--framework", "netcoreapp1.1"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
}
]
}
我收到此错误:
{
"version": "0.1.0",
"command": "dotnet",
"isShellCommand": true,
"args": [],
"tasks": [
{
"taskName": "build_task",
"suppressTaskName": true,
"args": [
"build",
"-o", "${workspaceRoot}/obj/",
"${workspaceRoot}/main/project.json", "-f", "netcoreapp1.1",
"${workspaceRoot}/pluginSample/project.json", "-f", "netstandard1.6"
],
"isBuildCommand": true,
"problemMatcher": "$msCompile"
}
]
}
但是当我手动编译它时,它可以工作:
Unexpected value 'netstandard1.6' for option 'framework'