Skip to content

Commit 67c7da4

Browse files
committed
Merged main into live
2 parents ccaf5ec + 97d9ed0 commit 67c7da4

12 files changed

+86
-7
lines changed

docs/ide/customizing-the-start-page-for-visual-studio.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Change the startup experience
33
description: Customize your startup experience so Visual Studio opens with the tools that are most useful to you, such as opening the most recently opened solution.
4-
ms.date: 06/05/2023
4+
ms.date: 10/25/2024
55
ms.topic: conceptual
66
f1_keywords:
77
- vs.ToolsOptionsPages.Startup
@@ -34,8 +34,11 @@ You can customize the startup experience for Visual Studio in several different
3434

3535
1. On the menu bar, select **Tools** > **Options**.
3636

37-
2. Expand **Environment**, and then select **General**.
37+
1. Expand **Environment**, and then select **General**.
38+
39+
1. In the **On startup, open** list, select what you want to happen after Visual Studio launches. You can choose from **Start window** (where you can open a new or existing project), **Most recent solution**, or **Empty environment**.
40+
41+
:::image type="content" source="media/vs-2022/environment-startup-experience.png" alt-text="Screenshot of the options to customize the startup experience in Visual Studio.":::
3842

39-
3. In the **On startup, open** list, select what you want to happen after Visual Studio launches. You can choose from **Start window** (where you can open a new or existing project), **Most recent solution**, or **Empty environment**.
4043

4144
::: moniker-end

docs/ide/how-to-add-app-config-file.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add an app.config file to a project
33
description: Learn how to add an app.config file to a C# project so you can customize how the common language runtime locates and loads assembly files.
4-
ms.date: 03/29/2024
4+
ms.date: 10/25/2024
55
ms.topic: how-to
66
dev_langs:
77
- CSharp
@@ -26,13 +26,17 @@ To add an application configuration file to a C# project:
2626

2727
The **Add New Item** dialog box appears.
2828

29-
1. Expand **Installed** > **Visual C# Items**.
29+
1. Expand **Installed** > **C# Items**.
3030

3131
1. In the middle pane, select the **Application Configuration File** template.
3232

33+
:::image type="content" source="media/vs-2022/application-configuration-file.png" alt-text="Screenshot of the Application Configuration File item in the Add New Item dialog.":::
34+
3335
1. Select the **Add** button.
3436

3537
A file named *App.config* is added to your project.
38+
39+
:::image type="content" source="media/vs-2022/app-config-file-csharp-project.png" alt-text="Screenshot of the App dot config file added to your project.":::
3640

3741
For more information about application configuration files or about assemblies in .NET, see [How the runtime locates assemblies (.NET Framework)](/dotnet/framework/deployment/how-the-runtime-locates-assemblies) and [Assemblies in .NET](/dotnet/standard/assembly/).
3842

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

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Set multiple startup projects'
3-
description: Discover the Visual Studio process that allows you to specify how more than one project is run when you start the debugger.
4-
ms.date: 11/01/2023
3+
description: Discover the Visual Studio process that allows you to specify how more than one project is run when you start the debugger, and create launch profiles you can share with others.
4+
ms.date: 10/21/2024
55
ms.topic: how-to
66
helpviewer_keywords:
77
- startup projects, setting multiple startup projects
@@ -28,6 +28,78 @@ Some project templates include multiple projects that are already configured to
2828

2929
4. Choose the **Multiple Startup Projects** option and set the appropriate actions.
3030

31+
## Multi-project launch profiles
32+
33+
You can set up and save profiles for launching specific projects within a multi-project solution in predefined states for debugging. This simplifies the process of working with complex solutions, improves debugging efficiency, and enables easy sharing of configurations among team members.
34+
35+
### Enable multi-project launch profile
36+
37+
Multi-project launch profiles are available in Visual Studio 2022 17.11 and later. To enable or disable the **Multi-project Launch Profiles** feature, go to **Tools > Options > Preview Features** and toggle the checkbox for **Enable Multi Launch Profiles**.
38+
39+
:::image type="content" source="media/launch-multiple-projects/tools-options-enable-multi-project-launch.png" alt-text="Screenshot showing the option to enable Multi-project Launch Profiles in the Tools Options dialog." border="true":::
40+
41+
### Create a multi-project launch profile
42+
43+
1. Open your Visual Studio solution that contains multiple projects.
44+
1. In Solution Explorer, right-click on your solution, and select **Configure Startup Projects...**.
45+
46+
You can also press **Ctrl**+**Q** (Quick Launch) and search for "Configure startup projects" in Feature Search.
47+
48+
:::image type="content" source="media/launch-multiple-projects/quick-launch-configure-startup-projects.png" alt-text="Screenshot showing searching for configure startup projects in Feature Search." border="true" :::
49+
50+
The **Solution Property Pages** dialog appears.
51+
52+
1. In the Solution Property Pages, click on the **Common Properties** tab, and select **Configure Startup Projects**.
53+
1. In the **Configure Startup Projects** section, choose the **Multiple startup projects** radio button.
54+
55+
:::image type="content" source="media/launch-multiple-projects/solution-property-pages.jpg" alt-text="Screenshot showing the Multiple startup projects radio button." border="true" lightbox="media/launch-multiple-projects/solution-property-pages.jpg":::
56+
57+
Below the radio button, you'll see a list of all the projects in your solution, and whether they are set to be launched or not when you press **F5**, and whether each project is started under the debugger or without debugging.
58+
59+
You can use the up and down arrows to control the order in which projects will be launched.
60+
61+
1. Set the action for each project to either **Start**, **Start without debugging**, or **None**, and select a debug target depending on your requirements.
62+
63+
![Screenshot showing the options for starting a project.](media/launch-multiple-projects/launch-profiles-start-options.png)
64+
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).
67+
68+
:::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":::
69+
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+
98+
1. Once you've configured the startup action for each project, click the **OK** or **Apply** button to save the profile.
99+
The created launch profile appears in the toolbar dropdown list, allowing you to select the profile you want to debug.
100+
101+
:::image type="content" source="media/launch-multiple-projects/profile-in-toolbar.png" alt-text="Screenshot showing launch profile in toolbar.":::
102+
31103
## With Docker Compose
32104

33105
When you're using Docker Compose to launch containerized projects on a local machine, you use a different method (launch profiles) to start multiple projects.
88.3 KB
Loading
27.8 KB
Loading
148 KB
Loading
96.2 KB
Loading
329 KB
Loading
68.7 KB
Loading
25.9 KB
Loading

0 commit comments

Comments
 (0)