You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/customizing-the-start-page-for-visual-studio.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Change the startup experience
3
3
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
5
5
ms.topic: conceptual
6
6
f1_keywords:
7
7
- vs.ToolsOptionsPages.Startup
@@ -34,8 +34,11 @@ You can customize the startup experience for Visual Studio in several different
34
34
35
35
1. On the menu bar, select **Tools** > **Options**.
36
36
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.":::
38
42
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**.
Copy file name to clipboardExpand all lines: docs/ide/how-to-add-app-config-file.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Add an app.config file to a project
3
3
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
5
5
ms.topic: how-to
6
6
dev_langs:
7
7
- CSharp
@@ -26,13 +26,17 @@ To add an application configuration file to a C# project:
26
26
27
27
The **Add New Item** dialog box appears.
28
28
29
-
1. Expand **Installed** > **Visual C# Items**.
29
+
1. Expand **Installed** > **C# Items**.
30
30
31
31
1. In the middle pane, select the **Application Configuration File** template.
32
32
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
+
33
35
1. Select the **Add** button.
34
36
35
37
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.":::
36
40
37
41
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/).
Copy file name to clipboardExpand all lines: docs/ide/how-to-set-multiple-startup-projects.md
+74-2Lines changed: 74 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
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.
@@ -28,6 +28,78 @@ Some project templates include multiple projects that are already configured to
28
28
29
29
4. Choose the **Multiple Startup Projects** option and set the appropriate actions.
30
30
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
+

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:
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
+
31
103
## With Docker Compose
32
104
33
105
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.
0 commit comments