在launch.json中有以下启动任务:
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/MyProject.dll",
[...]
我还想在启动时运行npm run start:dev,并在停止时终止它。所以我添加了这个:
{
"command": "npm run start:dev",
"name": "Run npm start:dev",
"request": "launch",
"type": "node-terminal",
"cwd": "${workspaceFolder}/ClientApp",
}
但是后者什么也没做。可以与MVC Core应用一起运行时运行npm run start:dev
吗?