Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting profiles with multiple startup projects

I have a VS 2017 solution that I have 3 separate MVC Core 2.0 web projects. Each project has the same three profiles setup to run. When I select any one of the 3 sites as the startup project I get an option to select which profile I want to run. The problem I have is when I select all three as Multiple Startup Projects I no longer have the option to select which profile to run. How would I go about setting this up so I can debug all 3 sites and select which profile I want to run as?

Thanks

like image 265
user1041169 Avatar asked Dec 04 '22 20:12

user1041169


2 Answers

I'm a little late to this, but I was having the same issue; it turns out the solution is rather simple.

Visual Studio doesn't show you this in anyway, but when starting multiple projects it will actually run the last profile you had selected.

So all you have to do is go to each project as a single start up project, select the profile, and then switch to multiple startup projects.

Hope that helps!

like image 150
Slamma009 Avatar answered Dec 06 '22 10:12

Slamma009


I ended up finding this great extension called SwitchStartupProject that was exactly what I was looking for.It creates a file that you can highly customize. It is pretty simple and has a good wiki to help you get up and running.

SwitchStartupProject fro VS 2017

like image 23
user1041169 Avatar answered Dec 06 '22 08:12

user1041169