Skip to content

Commit 6a097a6

Browse files
committed
add example of profile file
1 parent e64b5ad commit 6a097a6

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

docs/ide/how-to-set-multiple-startup-projects.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,39 @@ Multi-project launch profiles are available in Visual Studio 2022 17.11 and late
6262

6363
![Screenshot showing the options for starting a project.](media/launch-multiple-projects/launch-profiles-start-options.png)
6464

65-
1. Enable the **Share Profile** checkbox if you want to share the profile with other Visual Studio users by checking it into the `.config` file in the Source Control repo.
66-
Launch profiles are saved to a JSON file in the same directory as the solution. The **Share Profile** checkbox determines whether the profile is saved to a user-specific file (unchecked) or to a file intended for source control tracking, such as in Git (checked).
65+
1. Enable the **Share Profile** checkbox if you want to share the profile with other Visual Studio users by checking it into the configuration file in the Source Control repo.
66+
Launch profiles are saved to a JSON file with the extension `.slnLaunch` in the same directory as the solution. The **Share Profile** checkbox determines whether the profile is saved to a user-specific file (unchecked) or to a file intended for source control tracking, such as in Git (checked).
6767

6868
:::image type="content" source="media/launch-multiple-projects/share-profile.png" alt-text="Screenshot that shows the Share Profile checkbox on the Solution Property pages dialog." border="true":::
6969

70+
Here's an example of the profile in the `.slnLaunch` file:
71+
72+
```json
73+
[
74+
{
75+
"Name": "Feature Profile",
76+
"Projects": [
77+
{
78+
"Path": "src\\OrchardCore.Cms.Web\\OrchardCore.Cms.Web.csproj",
79+
"Action": "Start"
80+
},
81+
{
82+
"Path": "src\\OrchardCore\\OrchardCore.DisplayManagement\\OrchardCore.DisplayManagement.csproj",
83+
"Action": "Start"
84+
},
85+
{
86+
"Path": "src\\OrchardCore\\OrchardCore.Data\\OrchardCore.Data.csproj",
87+
"Action": "StartWithoutDebugging"
88+
},
89+
{
90+
"Path": "src\\OrchardCore\\OrchardCore.ContentManagement.Display\\OrchardCore.ContentManagement.Display.csproj",
91+
"Action": "Start"
92+
}
93+
]
94+
}
95+
]
96+
```
97+
7098
1. Once you've configured the startup action for each project, click the **OK** or **Apply** button to save the profile.
7199
The created launch profile appears in the toolbar dropdown list, allowing you to select the profile you want to debug.
72100

0 commit comments

Comments
 (0)