How to run multiple tasks upon launch in vscode?

Viewed 202

I have the following launch task in 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",

            [...]

I would also like to run npm run start:dev, when launching, and terminate it when stopping. So I added this:

    {
        "command": "npm run start:dev",
        "name": "Run npm start:dev",
        "request": "launch",
        "type": "node-terminal",
        "cwd": "${workspaceFolder}/ClientApp",
    }

But the latter doesn't do anything. Is it possible to run npm run start:dev upon launch together with an MVC Core app?

0 Answers
Related