visual-studiosettingsapp-startup

How do I save multiple startup projects as a separate start type in a visual studio 2022?


In visual studio there is a way to choose multiple projects for a startup via "Multiple startup projects" in a solution settings. I can even choose an order in which they are going to start with arrows, which is very helpful if order matters. However from time to time I need to start a separate project and then get back to the same set of projects. It never saves it. Is there a way to save my set of projects and their order and name it with something custom so that I don't have to setup all this every time I restart vs or switch between projects? I'm using Windows 11, Visual Studio 2022 Community.


Solution

  • Since Visual Studio 2022 17.10 there is a preveiw feature for this. There were a blog post describing it in detail. Currently(11.07.24) it's not reachable. (Available again). So here a summary.

    Select Preview Features and select the value "Enable Multi Project launch profiles

    After selecting this option you may configure multiple profiles. Saved profiles may be shared. (A file with the settings is created in the project root)

    enter image description here

    Now it is possible to select the profiles like a single project.

    enter image description here