# Make F5 launch the same projects on every machine with .slnLaunch

> Keep a .slnLaunch file in Git so Visual Studio starts the same projects in the same order on every machine, with the debugger attached where you need it.

- Author: Jérôme Giacomini
- Language: en
- Canonical URL: [Make F5 launch the same projects on every machine with .slnLaunch](https://jeromegiacomini.net/articles/2026/12/02/visual-studio-share-startup-projects-slnlaunch)
- Published: 2026-12-02
- Last modified: 2026-11-30
- Topics: Visual Studio, .NET, Git, Debugging

![One .slnLaunch file connects a laptop and a desktop, both running Visual Studio](/media/2026/visual-studio-slnlaunch/images/visual-studio-shared-profile.png)

I recently came across Visual Studio’s `.slnLaunch` file. If you work on two machines, it saves you from picking your **F5** startup projects twice.

Say your solution has an API and a web front end. You want to set breakpoints in the API and use the site to hit them. One launch profile can start both projects and attach the debugger only to the API.

## Share the profile through Git

1. In Visual Studio 2022 **17.11** or later, open **Tools > Options**. Under **Preview Features**, make sure **Enable Multi-Project Launch Profiles** is checked. The label may vary between versions.
2. Right-click the solution and select **Configure Startup Projects**.
3. Choose **Multiple startup projects** and name the profile **API + Web**. Set the API to **Start** and the web project to **Start without debugging**. The arrows set the launch order, but they don’t guarantee that the API is ready when the site starts.
4. Check **Share Profile** and click **OK**. Visual Studio writes a JSON file named after the solution, such as `MySolution.slnLaunch`, in the same folder. Commit the file to Git and push the commit.

If you leave **Share Profile** unchecked, the profile is saved to a user-specific file.

Here’s what the shared profile looks like. Visual Studio may also add a `DebugTarget` key to each project for the debug target you selected.

```json
[
  {
    "Name": "API + Web",
    "Projects": [
      { "Path": "Api\\Api.csproj", "Action": "Start" },
      { "Path": "Web\\Web.csproj", "Action": "StartWithoutDebugging" }
    ]
  }
]
```

On the other machine, check the preview option too, then pull the commit and open the solution. Select **API + Web** in the toolbar and press **F5**. The project paths are relative to the solution, so you can clone the repository into a different folder.

## Further reading

- [Set multiple startup projects](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2022): Microsoft’s documentation covers the profile options and shows where to find them in Visual Studio.
- [Multi-Project Launch Configuration](https://devblogs.microsoft.com/visualstudio/multi-project-launch-configuration/): the Visual Studio team’s announcement of the feature, from September 2024.

Happy Coding :)
