Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
How stop multiple projects in vscode with the launch.json

I have in my launch.JSON a configuration that allows me to start two different API projects at the same time (Web API One and Web API Two), both are components of the same project, everything works fine on start, but if I need to stop the APIs I need to stop each of them individually, theirs a way to create a config file to stop both projects at the same time?

Observation: I use only two projects in this code example, but in reality, I have six APIs and other projects like services and front-end projects.

Most C# projects, Windows Services and Web APIs, but I want to include JavaScript front-end projects in the future.

My launch.JSON:

// Components for start menu in vscode debug mode
{
    "version": "0.2.0",
    "compounds": 
    [
        {
            "name": "Web API",
            "configurations": 
            [
                "Web API One",
                "Web API Two"
            ]
        }
    ],

// Configuration of each project
    "configurations": 
    [
        {
            "name": "Web API One",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "buildWEBAPI",
            "program": "${workspaceFolder}/WEBAPI/PATH",
            "args": 
            [
                "--force"
            ],
            "cwd": "${workspaceFolder}/01.Application/WEBAPI",
            "stopAtEntry": false,
            "env": 
            {
                "ASPNETCORE_ENVIRONMENT": "Development"
            }
        },
        {
            "name": "Web API Two",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "buildWEBAPI",
            "program": "${workspaceFolder}/WEBAPI/PATH",
            "args": 
            [
                "--force"
            ],
            "cwd": "${workspaceFolder}/01.Application//WEBAPI/",
            "stopAtEntry": false,
            "env": 
            {
                "ASPNETCORE_ENVIRONMENT": "Development"
            }
        }
    ]
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda