在vscode中启动时如何运行多个任务?

时间:2020-07-07 10:50:23

标签: visual-studio-code vscode-tasks

在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吗?

0 个答案:

没有答案