Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default debug Profile when launching multiple asp .NET core projects?

I have a solution that launches multiple projects, and I set the launch profile for both to the console app instead of launching in IIS via the Project Properties page.

When I launched the projects individually they launched successfully in the console windows. But when I set multiple startup projects they went back to launching in IIS.

How can I get multiple projects to launch using the correct debug profile?

like image 367
Zorgarath Avatar asked Jun 10 '20 15:06

Zorgarath


People also ask

How do I Debug multiple projects in Visual Studio?

Visual Studio allows you to specify how more than one project is run when you press F5 (Start with Debugging), or Ctrl+F5 (Start without debugging), or use the toolbar button to launch your application.

How do I set multiple startup projects in Visual Studio?

Setting multiple startup projects in Visual Studio is easy… 1 – Right click the solution and select 'Set Startup Projects…'. 2 – Select 'Multiple startup projects' and choose two or more projects. 3 – Press run and Visual Studio will open them in your selected browser.

Where is launchSettings JSON located?

json launchSettings. json, which is placed in the Properties folder of a project, describes how the application can be launched — the command to execute, whether the browser should be opened, which environment variables should be set, and so on.


1 Answers

To set the default launch profile you can re-arrange the debug profiles listed in Properties > launchSettings.json. The first profile in the list will be the one used when launching multiple projects.

enter image description here

like image 164
Zorgarath Avatar answered Oct 07 '22 14:10

Zorgarath