Skip to content

Commit cb5047c

Browse files
authored
Merge pull request #7641 from TerryGLee/tglee-solproj
more updates to Solutions & Projects topics
2 parents 8a0d0f4 + 6460cf9 commit cb5047c

File tree

3 files changed

+38
-30
lines changed

3 files changed

+38
-30
lines changed

docs/ide/create-new-project.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Create a new project
3-
description: Learn how to create a new project in Visual Studio, step by step.
4-
ms.custom: SEO-VS-2020
5-
ms.date: 03/19/2019
3+
description: Learn how to create a new project in Visual Studio.
4+
ms.custom: "SEO-VS-2020, contperf-fy21q2"
5+
ms.date: 12/17/2020
66
ms.topic: how-to
77
f1_keywords:
88
- vs.newproject
@@ -16,11 +16,13 @@ ms.workload:
1616
---
1717
# Create a new project in Visual Studio
1818

19+
In this article, we'll show you how to quickly create a new project in Visual Studio.
20+
1921
::: moniker range="vs-2017"
2022

2123
## Open the New Project dialog
2224

23-
There are multiple ways to create a new project in Visual Studio 2017. On the Start page, you can type in the name of a project template in the **Search project templates** box or choose the **Create new project** link to open the **New Project** dialog box. Aside from the Start page, you can also choose **File** > **New** > **Project** on the menu bar or click the **New Project** button on the toolbar.
25+
There are multiple ways to create a new project in Visual Studio 2017. On the Start page, you can type in the name of a project template in the **Search project templates** box or select the **Create new project** link to open the **New Project** dialog box. Aside from the Start page, you can also select **File** > **New** > **Project** on the menu bar or click the **New Project** button on the toolbar.
2426

2527
![Start page and File > New > Project](./media/vside-newproject1.png)
2628

@@ -41,7 +43,7 @@ The following image shows the project templates available for Visual C# .NET Cor
4143

4244
## Configure your project
4345

44-
Enter a name for the new project in the **Name** box. You can save the project in the default location on your computer or click the **Browse** button to find another location. You can also choose a solution name or add the new project to a Git repository (by choosing **Add to Source Control**).
46+
Enter a name for the new project in the **Name** box. You can save the project in the default location on your computer or click the **Browse** button to find another location. You can also select a solution name or add the new project to a Git repository (by selecting **Add to Source Control**).
4547

4648
Click **OK** to create the solution and project.
4749

@@ -51,9 +53,9 @@ Click **OK** to create the solution and project.
5153

5254
## Open the Create a new project page
5355

54-
There are multiple ways to create a new project in Visual Studio 2019. When you first open Visual Studio, the start window appears, and from there, you can choose **Create a new project**.
56+
There are multiple ways to create a new project in Visual Studio 2019. When you first open Visual Studio, the start window appears, and from there, you can select **Create a new project**.
5557

56-
![Create a new project from the start window in VS 2019](media/vs-2019/start-window-create-new-project.png)
58+
![Create a new project from the start window in Visual Studio 2019](media/vs-2019/start-window-create-new-project.png)
5759

5860
If the Visual Studio development environment is already open, you can create a new project by choosing **File** > **New** > **Project** on the menu bar or by clicking the **New Project** button on the toolbar.
5961

@@ -70,30 +72,33 @@ If you're not selecting from the recently used templates, you can filter all ava
7072
The tags that appear under each template correspond to the three dropdown filters (Language, Platform, and Project type).
7173

7274
> [!TIP]
73-
> If you don't see the template you're looking for, you may be missing a workload for Visual Studio. To install additional workloads, for example, **Azure Development** or **Mobile Development with .NET**, click the **Install more tools and features** link to open Visual Studio Installer. From there, select the workloads you want to install, and then choose **Modify**. After that, additional project templates will be available to choose from.
75+
> If you don't see the template you're looking for, you might be missing a workload for Visual Studio. To install additional workloads, for example, **Azure Development** or **Mobile Development with .NET**, click the **Install more tools and features** link to open Visual Studio Installer. From there, select the workloads you want to install, and then select **Modify**. After that, additional project templates will be available to choose from.
7476
>
75-
> ![Install more tools and features link in VS 2019](media/vs-2019/install-more-tools-features.png)
77+
> ![Install more tools and features link in Visual Studio 2019](media/vs-2019/install-more-tools-features.png)
7678
7779
Select a template and then click **Next**.
7880

7981
## Configure your project
8082

81-
The **Configure your new project** page has options to name your project (and solution), choose a disk location, and select a Framework version (if applicable to the template you chose).
83+
The **Configure your new project** page has options to name your project (and solution), select a disk location, and select a Framework version (if applicable to the template you chose).
8284

83-
![Configure your new project page in VS 2019](media/vs-2019/configure-new-project.png)
85+
![Configure your new project page in Visual Studio 2019](media/vs-2019/configure-new-project.png)
8486

8587
> [!NOTE]
8688
> If you create a new project when you already have a project or solution open in Visual Studio, an extra configuration option is available. You can choose to create a new solution or add the new project to the solution that's already open.
8789
>
88-
> ![Create new solution or add to existing solution in VS 2019](media/vs-2019/configure-new-project-solution.png)
90+
> ![Create new solution or add to existing solution in Visual Studio 2019](media/vs-2019/configure-new-project-solution.png)
8991
9092
Click **Create** to create the new project.
9193

9294
::: moniker-end
9395

9496
## Add additional projects to a solution
9597

96-
If you want to add an additional project to a solution, right-click the solution node in **Solution Explorer** and choose **Add** > **New Project**.
98+
If you want to add an additional project to a solution, right-click the solution node in **Solution Explorer** and select **Add** > **New Project**.
99+
100+
> [!TIP]
101+
> For an example of a project and solution created from scratch, complete with step-by-step instructions and sample code, see [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md).
97102
98103
## See also
99104

docs/ide/creating-solutions-and-projects.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Work with solutions and projects
33
description: Learn about the difference between solutions and projects and how to use them in Visual Studio.
4-
ms.custom: SEO-VS-2020
4+
ms.custom: "SEO-VS-2020, contperf-fy21q2"
55
ms.date: 02/06/2018
66
ms.topic: how-to
77
f1_keywords:
@@ -42,26 +42,26 @@ For information about creating a new project from a template, see [Create a new
4242

4343
If you have a collection of code source files, you can easily add them to a project.
4444

45-
1. On the menu, choose **File** > **New** > **Project From Existing Code**.
45+
1. On the menu, select **File** > **New** > **Project From Existing Code**.
4646

47-
1. In the **Create Project from Existing Code Files** wizard, choose the project type you want in the **What type of project would you like to create?** drop-down list box, and then choose the **Next** button.
47+
1. In the **Create Project from Existing Code Files** wizard, select the project type you want in the **What type of project would you like to create?** drop-down list box, and then select the **Next** button.
4848

49-
1. In the wizard, browse to the location of the files and then enter a name for the new project in the **Name** box. When you are done, choose the **Finish** button.
49+
1. In the wizard, browse to the location of the files and then enter a name for the new project in the **Name** box. When you are done, select the **Finish** button.
5050

5151
> [!NOTE]
5252
> This option works best for a relatively simple collection of files. Currently, only C++, Apache Cordova, Visual Basic, and C# project types are supported.
5353
5454
## Add files to a solution
5555

56-
If you have a file that applies to multiple projects, such as a readme file for the solution, or other files that logically belong at the solution level rather than under a specific project, then you can add them to the solution itself. To add an item to a solution, on the context (right-click) menu of the solution node in **Solution Explorer**, choose **Add** > **New Item**, or **Add** > **Existing Item**.
56+
If you have a file that applies to multiple projects, such as a readme file for the solution, or other files that logically belong at the solution level rather than under a specific project, then you can add them to the solution itself. To add an item to a solution, on the context (right-click) menu of the solution node in **Solution Explorer**, select **Add** > **New Item**, or **Add** > **Existing Item**.
5757

5858
## Create a .NET project that targets a specific version of the .NET Framework
5959

6060
When you create a .NET Framework project, you can specify a specific version of the .NET Framework that you want the project to use. (When you create a .NET Core project, you don't specify a framework version.)
6161

6262
::: moniker range="vs-2017"
6363

64-
To specify a .NET Framework version, choose the **Framework** drop-down menu in the **New Project** dialog box.
64+
To specify a .NET Framework version, select the **Framework** drop-down menu in the **New Project** dialog box.
6565

6666
![Framework drop-down in New Project dialog](./media/vside-newproject-framework.png)
6767

@@ -72,7 +72,7 @@ To specify a .NET Framework version, choose the **Framework** drop-down menu in
7272

7373
::: moniker range=">=vs-2019"
7474

75-
To specify a .NET Framework version, choose the **Framework** drop-down menu on the **Create a new project** page.
75+
To specify a .NET Framework version, select the **Framework** drop-down menu on the **Create a new project** page.
7676

7777
![Framework selector in configure new project](media/vs-2019/configure-new-project-framework.png)
7878

@@ -84,15 +84,15 @@ You can also create empty solutions that have no projects. This might be prefera
8484

8585
### To create an empty solution
8686

87-
1. On the menu bar, choose **File** > **New** > **Project**.
87+
1. On the menu bar, select **File** > **New** > **Project**.
8888

8989
::: moniker range="vs-2017"
9090

91-
2. In the left (**Templates**) pane, choose **Other Project Types** > **Visual Studio Solutions** in the expanded list.
91+
2. In the left (**Templates**) pane, select **Other Project Types** > **Visual Studio Solutions** in the expanded list.
9292

93-
3. In the middle pane, choose **Blank Solution**.
93+
3. In the middle pane, select **Blank Solution**.
9494

95-
4. Enter **Name** and **Location** values for your solution, and then choose **OK**.
95+
4. Enter **Name** and **Location** values for your solution, and then select **OK**.
9696

9797
::: moniker-end
9898

@@ -102,7 +102,7 @@ You can also create empty solutions that have no projects. This might be prefera
102102

103103
3. Select the **Blank Solution** template, and then click **Next**.
104104

105-
4. Enter **Name** and **Location** values for your solution, and then choose **Create**.
105+
4. Enter **Name** and **Location** values for your solution, and then select **Create**.
106106

107107
::: moniker-end
108108

@@ -131,11 +131,11 @@ You can delete solutions and their contents permanently, but not by using the Vi
131131
132132
### Permanently delete a solution
133133

134-
1. In **Solution Explorer**, on the right-click menu (context menu) of the solution you want to delete, choose **Open folder in File Explorer**.
134+
1. In **Solution Explorer**, on the right-click menu (context menu) of the solution you want to delete, select **Open folder in File Explorer**.
135135

136136
1. In File Explorer, navigate up one level.
137137

138-
1. Choose the folder containing the solution and then press the **Delete** key.
138+
1. Select the folder containing the solution and then press the **Delete** key.
139139

140140
## See also
141141

docs/ide/solutions-and-projects-in-visual-studio.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Learn about solutions and projects
33
description: Learn about Visual Studio projects and solutions, how to create new projects from a template, and how to view & manage projects in Solution Explorer.
4-
ms.custom: SEO-VS-2020
5-
ms.date: 12/15/2020
4+
ms.custom: "SEO-VS-2020, contperf-fy21q2"
5+
ms.date: 12/17/2020
66
ms.topic: conceptual
77
f1_keywords:
88
- vs.addnewitem
@@ -71,11 +71,14 @@ You can also create a custom project template that you can use to create new pro
7171

7272
When you create a new project, Visual Studio saves it to its default location, *%USERPROFILE%\source\repos*. To change this location, go to **Tools** > **Options** > **Projects and Solutions** > **Locations**. For more information, see [Options dialog box: Projects and Solutions > Locations](./reference/projects-solutions-locations-options.md).
7373

74+
> [!TIP]
75+
> For an example of a project and solution created from scratch, complete with step-by-step instructions and sample code, see [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md).
76+
7477
## Solution Explorer
7578

7679
After you create a new project, you can use **Solution Explorer** to view and manage the project and solution and their associated items. The following illustration shows **Solution Explorer** with a C# solution that contains two projects:
7780

78-
![Solution Explorer](../ide/media/vs2015_solution_explorer.png)
81+
![Screenshot of Solution Explorer.](../ide/media/vs2015_solution_explorer.png)
7982

8083
Many menu commands are available from the right-click menu on various items in **Solution Explorer**. These commands include building a project, managing NuGet packages, adding a reference, renaming a file, and running tests, just to name a few. The toolbar across the top of **Solution Explorer** has buttons to switch from a solution view to a folder view, show hidden files, collapse all nodes, and more.
8184

0 commit comments

Comments
 (0)