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/create-new-project.md
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
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
6
6
ms.topic: how-to
7
7
f1_keywords:
8
8
- vs.newproject
@@ -16,11 +16,13 @@ ms.workload:
16
16
---
17
17
# Create a new project in Visual Studio
18
18
19
+
In this article, we'll show you how to quickly create a new project in Visual Studio.
20
+
19
21
::: moniker range="vs-2017"
20
22
21
23
## Open the New Project dialog
22
24
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.
24
26
25
27

26
28
@@ -41,7 +43,7 @@ The following image shows the project templates available for Visual C# .NET Cor
41
43
42
44
## Configure your project
43
45
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**).
45
47
46
48
Click **OK** to create the solution and project.
47
49
@@ -51,9 +53,9 @@ Click **OK** to create the solution and project.
51
53
52
54
## Open the Create a new project page
53
55
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**.
55
57
56
-

58
+

57
59
58
60
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.
59
61
@@ -70,30 +72,33 @@ If you're not selecting from the recently used templates, you can filter all ava
70
72
The tags that appear under each template correspond to the three dropdown filters (Language, Platform, and Project type).
71
73
72
74
> [!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.
74
76
>
75
-
> 
77
+
> 
76
78
77
79
Select a template and then click **Next**.
78
80
79
81
## Configure your project
80
82
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).
82
84
83
-

85
+

84
86
85
87
> [!NOTE]
86
88
> 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.
87
89
>
88
-
> 
90
+
> 
89
91
90
92
Click **Create** to create the new project.
91
93
92
94
::: moniker-end
93
95
94
96
## Add additional projects to a solution
95
97
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).
Copy file name to clipboardExpand all lines: docs/ide/creating-solutions-and-projects.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Work with solutions and projects
3
3
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"
5
5
ms.date: 02/06/2018
6
6
ms.topic: how-to
7
7
f1_keywords:
@@ -42,26 +42,26 @@ For information about creating a new project from a template, see [Create a new
42
42
43
43
If you have a collection of code source files, you can easily add them to a project.
44
44
45
-
1. On the menu, choose**File** > **New** > **Project From Existing Code**.
45
+
1. On the menu, select**File** > **New** > **Project From Existing Code**.
46
46
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.
48
48
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.
50
50
51
51
> [!NOTE]
52
52
> This option works best for a relatively simple collection of files. Currently, only C++, Apache Cordova, Visual Basic, and C# project types are supported.
53
53
54
54
## Add files to a solution
55
55
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**.
57
57
58
58
## Create a .NET project that targets a specific version of the .NET Framework
59
59
60
60
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.)
61
61
62
62
::: moniker range="vs-2017"
63
63
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.
65
65
66
66

67
67
@@ -72,7 +72,7 @@ To specify a .NET Framework version, choose the **Framework** drop-down menu in
72
72
73
73
::: moniker range=">=vs-2019"
74
74
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.
76
76
77
77

78
78
@@ -84,15 +84,15 @@ You can also create empty solutions that have no projects. This might be prefera
84
84
85
85
### To create an empty solution
86
86
87
-
1. On the menu bar, choose**File** > **New** > **Project**.
87
+
1. On the menu bar, select**File** > **New** > **Project**.
88
88
89
89
::: moniker range="vs-2017"
90
90
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.
92
92
93
-
3. In the middle pane, choose**Blank Solution**.
93
+
3. In the middle pane, select**Blank Solution**.
94
94
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**.
96
96
97
97
::: moniker-end
98
98
@@ -102,7 +102,7 @@ You can also create empty solutions that have no projects. This might be prefera
102
102
103
103
3. Select the **Blank Solution** template, and then click **Next**.
104
104
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**.
106
106
107
107
::: moniker-end
108
108
@@ -131,11 +131,11 @@ You can delete solutions and their contents permanently, but not by using the Vi
131
131
132
132
### Permanently delete a solution
133
133
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**.
135
135
136
136
1. In File Explorer, navigate up one level.
137
137
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.
Copy file name to clipboardExpand all lines: docs/ide/solutions-and-projects-in-visual-studio.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: Learn about solutions and projects
3
3
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
6
6
ms.topic: conceptual
7
7
f1_keywords:
8
8
- vs.addnewitem
@@ -71,11 +71,14 @@ You can also create a custom project template that you can use to create new pro
71
71
72
72
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).
73
73
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
+
74
77
## Solution Explorer
75
78
76
79
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:

79
82
80
83
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.
0 commit comments