Skip to content

Commit 8537580

Browse files
authored
Merge pull request #7639 from TerryGLee/tglee-solproj
updates to Solutions & Projects topics
2 parents 9358a48 + a2ca66a commit 8537580

File tree

4 files changed

+35
-32
lines changed

4 files changed

+35
-32
lines changed

docs/get-started/tutorial-projects-solutions.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ manager: jillfra
1111
ms.workload:
1212
- multiple
1313
---
14-
# Learn about projects and solutions
14+
# Introduction to projects and solutions
1515

1616
In this introductory article, we'll explore what it means to create a *solution* and a *project* in Visual Studio. A solution is a container that's used to organize one or more related code projects, for example a class library project and a corresponding test project. We'll look at the properties of a project and some of the files it can contain. We'll also create a reference from one project to another.
1717

@@ -44,11 +44,11 @@ We'll start our exploration by creating an empty solution. After you get to know
4444

4545
1. Open Visual Studio.
4646

47-
1. On the top menu bar, choose **File** > **New** > **Project**.
47+
1. On the top menu bar, select **File** > **New** > **Project**.
4848

4949
The **New Project** dialog box opens.
5050

51-
1. In the left pane, expand **Other Project Types**, then choose **Visual Studio Solutions**. In the center pane, choose the **Blank Solution** template. Name your solution **QuickSolution**, then choose the **OK** button.
51+
1. In the left pane, expand **Other Project Types**, then select **Visual Studio Solutions**. In the center pane, select the **Blank Solution** template. Name your solution **QuickSolution**, then select the **OK** button.
5252

5353
![Blank Solution template in Visual Studio 2017](media/tutorial-projects-new-solution.png "The Blank Solution template in Visual Studio 2017.")
5454

@@ -60,16 +60,16 @@ We'll start our exploration by creating an empty solution. After you get to know
6060

6161
1. Open Visual Studio.
6262

63-
2. On the start window, choose **Create a new project**.
63+
2. On the start window, select **Create a new project**.
6464

65-
3. On the **Create a new project** page, enter **blank solution** into the search box, select the **Blank Solution** template, and then choose **Next**.
65+
3. On the **Create a new project** page, enter **blank solution** into the search box, select the **Blank Solution** template, and then select **Next**.
6666

6767
![Blank Solution template in Visual Studio 2019](media/vs-2019/tutorial-projects-blank-solution-template.png "The Blank Solution template in Visual Studio 2019.")
6868

6969
> [!TIP]
7070
> If you have several workloads installed, the **Blank Solution** template might not appear at the top of your list of search results. Try scrolling to the **Other results based on your search** section of the list. It should appear there.
7171
72-
4. Name the solution **QuickSolution**, and then choose **Create**.
72+
4. Name the solution **QuickSolution**, and then select **Create**.
7373

7474
A solution appears in **Solution Explorer** on the right-hand side of the Visual Studio window. You'll probably use **Solution Explorer** often, to browse the contents of your projects.
7575

@@ -81,39 +81,39 @@ Now let's add our first project to the solution. We'll start with an empty proje
8181

8282
::: moniker range="vs-2017"
8383

84-
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, choose **Add** > **New Project**.
84+
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, select **Add** > **New Project**.
8585

8686
The **Add New Project** dialog box opens.
8787

88-
1. In the left pane, expand **Visual C#** and choose **Windows Desktop**. Then, in the middle pane, choose the **Empty Project (.NET Framework)** template. Name the project **QuickDate**, then choose **OK**.
88+
1. In the left pane, expand **Visual C#** and select **Windows Desktop**. Then, in the middle pane, select the **Empty Project (.NET Framework)** template. Name the project **QuickDate**, then select **OK**.
8989

9090
A project named QuickDate appears beneath the solution in **Solution Explorer**. Currently it contains a single file called *App.config*.
9191

9292
> [!NOTE]
93-
> If you don't see **Visual C#** in the left pane of the dialog box, you must install the **.NET desktop development** Visual Studio workload. Visual Studio uses workload-based installation to install only the components you need for the type of development you do. An easy way to install a new workload is to choose the **Open Visual Studio Installer** link in the bottom left corner of the **Add New Project** dialog box. After Visual Studio Installer launches, choose the **.NET desktop development** workload and then the **Modify** button.
93+
> If you don't see **Visual C#** in the left pane of the dialog box, you must install the **.NET desktop development** Visual Studio workload. Visual Studio uses workload-based installation to install only the components you need for the type of development you do. An easy way to install a new workload is to select the **Open Visual Studio Installer** link in the bottom left corner of the **Add New Project** dialog box. After Visual Studio Installer launches, select the **.NET desktop development** workload and then the **Modify** button.
9494
>
9595
> ![Open Visual Studio Installer link](media/tutorial-projects-open-installer.png "The Open Visual Studio Installer link in the Add New Project dialog in Visual Studio 2017.")
9696
9797
::: moniker-end
9898

9999
::: moniker range=">=vs-2019"
100100

101-
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, choose **Add** > **New Project**.
101+
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, select **Add** > **New Project**.
102102

103103
A dialog box opens that says **Add a new project**.
104104

105105
1. Enter the text **empty** into the search box at the top, and then select **C#** under **Language**.
106106

107-
1. Select the **Empty Project (.NET Framework)** template, and then choose **Next**.
107+
1. Select the **Empty Project (.NET Framework)** template, and then select **Next**.
108108

109-
1. Name the project **QuickDate**, then choose **Create**.
109+
1. Name the project **QuickDate**, then select **Create**.
110110

111111
A project named QuickDate appears beneath the solution in **Solution Explorer**. Currently it contains a single file called *App.config*.
112112

113113
> [!NOTE]
114114
> If you don't see the **Empty Project (.NET Framework)** template, you must install the **.NET desktop development** Visual Studio workload. Visual Studio uses workload-based installation to install only the components you need for the type of development you do.
115115
>
116-
>An easy way to install a new workload when you're creating a new project is to choose the **Install more tools and features** link under the text that says **Not finding what you're looking for?**. After Visual Studio Installer launches, choose the **.NET desktop development** workload and then the **Modify** button.
116+
>An easy way to install a new workload when you're creating a new project is to select the **Install more tools and features** link under the text that says **Not finding what you're looking for?**. After Visual Studio Installer launches, select the **.NET desktop development** workload and then the **Modify** button.
117117
>
118118
> ![Open Visual Studio Installer link](media/vs-2019/tutorial-projects-open-installer.png "The Open Visual Studio Installer link in the Create a New Project dialog in Visual Studio.")
119119
@@ -123,11 +123,11 @@ Now let's add our first project to the solution. We'll start with an empty proje
123123

124124
We have an empty project. Let's add a code file.
125125

126-
1. From the right-click or context menu of the **QuickDate** project in **Solution Explorer**, choose **Add** > **New Item**.
126+
1. From the right-click or context menu of the **QuickDate** project in **Solution Explorer**, select **Add** > **New Item**.
127127

128128
The **Add New Item** dialog box opens.
129129

130-
1. Expand **Visual C# Items**, then choose **Code**. In the middle pane, choose the **Class** item template. Name the class **Calendar**, and then choose the **Add** button.
130+
1. Expand **Visual C# Items**, then select **Code**. In the middle pane, select the **Class** item template. Name the class **Calendar**, and then select the **Add** button.
131131

132132
A file named *Calendar.cs* is added to the project. The *.cs* on the end is the file extension that is given to C# code files. The file appears in the visual project hierarchy in **Solution Explorer**, and its contents are opened in the editor.
133133

@@ -163,11 +163,11 @@ It is common for solutions to contain more than one project, and often these pro
163163

164164
Let's add a unit test project to our solution. This time we'll start from a project template so we don't have to add an additional code file to the project.
165165

166-
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, choose **Add** > **New Project**.
166+
1. From the right-click or context menu of **Solution 'QuickSolution'** in **Solution Explorer**, select **Add** > **New Project**.
167167

168168
::: moniker range="vs-2017"
169169

170-
2. In the left pane, expand **Visual C#** and choose the **Test** category. In the middle pane, choose the **MSTest Test Project (.NET Core)** project template. Name the project **QuickTest**, and then choose **OK**.
170+
2. In the left pane, expand **Visual C#** and select the **Test** category. In the middle pane, select the **MSTest Test Project (.NET Core)** project template. Name the project **QuickTest**, and then select **OK**.
171171

172172
A second project is added to **Solution Explorer**, and a file named *UnitTest1.cs* opens in the editor.
173173

@@ -179,9 +179,9 @@ Let's add a unit test project to our solution. This time we'll start from a proj
179179

180180
2. In the **Add a new project** dialog box, enter the text **unit test** into the search box at the top, and then select **C#** under **Language**.
181181

182-
3. Choose the **MSTest Test Project (.NET Core)** project template, and then choose **Next**.
182+
3. Select the **MSTest Test Project (.NET Core)** project template, and then select **Next**.
183183

184-
4. Name the project **QuickTest**, and then choose **Create**.
184+
4. Name the project **QuickTest**, and then select **Create**.
185185

186186
A second project is added to **Solution Explorer**, and a file named *UnitTest1.cs* opens in the editor.
187187

@@ -195,30 +195,30 @@ We're going to use the new unit test project to test our method in the **QuickDa
195195

196196
::: moniker range="vs-2017"
197197

198-
1. Choose the **Dependencies** node in the **QuickTest** project, and from the right-click or context menu, choose **Add Reference**.
198+
1. Select the **Dependencies** node in the **QuickTest** project, and from the right-click or context menu, select **Add Reference**.
199199

200200
The **Reference Manager** dialog box opens.
201201

202-
1. In the left pane, expand **Projects** and choose **Solution**. In the middle pane, choose the checkbox next to **QuickDate**, and then choose **OK**.
202+
1. In the left pane, expand **Projects** and select **Solution**. In the middle pane, select the checkbox next to **QuickDate**, and then select **OK**.
203203

204204
A reference to the **QuickDate** project is added.
205205

206-
![Visual Studio 2019 Solution Explorer showing project reference](media/vs-2019/tutorial-projects-solution-explorer-reference.png "Solution Explorer showing a project reference in Visual Studio.")
206+
![A screenshot of Solution Explorer showing project reference in Visual Studio](media/vs-2019/tutorial-projects-solution-explorer-reference.png "A screenshot of Solution Explorer showing a project reference in Visual Studio.")
207207

208208
::: moniker-end
209209

210210
::: moniker range="vs-2019"
211211

212-
1. Choose the **Dependencies** node in the **QuickTest** project, and from the right-click or context menu, choose **Add Project Reference...**.
212+
1. Select the **Dependencies** node in the **QuickTest** project, and from the right-click or context menu, select **Add Project Reference...**.
213213

214214
The **Reference Manager** dialog box opens.
215215

216-
1. In the left pane, expand **Projects** and choose **Solution**. In the middle pane, choose the checkbox next to **QuickDate**, and then choose **OK**.
216+
1. In the left pane, expand **Projects**, and then select **Solution**. In the middle pane, select the checkbox next to **QuickDate**, and then select **OK**.
217217

218218
A reference to the **QuickDate** project is added.
219219

220-
![Visual Studio 2019 Solution Explorer showing project reference](media/vs-2019/tutorial-projects-solution-explorer-reference.png)
221-
220+
![A screenshot of Solution Explorer showing a project reference in Visual Studio 2019](media/vs-2019/tutorial-projects-solution-explorer-reference.png)
221+
222222
::: moniker-end
223223

224224
## Add test code
@@ -271,7 +271,7 @@ The line in the *Calendar.cs* file that contains the <xref:System.Runtime.Compil
271271

272272
## Next steps
273273

274-
If you want to check that your unit test is working, choose **Test** > **Run** > **All Tests** from the menu bar. A window called **Test Explorer** opens, and you should see that the **TestGetCurrentDate** test passes.
274+
If you want to check that your unit test is working, select **Test** > **Run** > **All Tests** from the menu bar. A window called **Test Explorer** opens, and you should see that the **TestGetCurrentDate** test passes.
275275

276276
![Test Explorer in Visual Studio showing passed test](media/tutorial-projects-test-explorer.png "Test Explorer in Visual Studio showing a passed test.")
277277

@@ -291,7 +291,7 @@ If you want to check that your unit test is working, choose **Test** > **Run** >
291291

292292
## See also
293293

294-
- [Create projects and solutions](../ide/creating-solutions-and-projects.md)
294+
- [Work with projects and solutions](../ide/creating-solutions-and-projects.md)
295295
- [Manage project and solution properties](../ide/managing-project-and-solution-properties.md)
296296
- [Manage references in a project](../ide/managing-references-in-a-project.md)
297297
- [Develop code in Visual Studio without projects or solutions](../ide/develop-code-in-visual-studio-without-projects-or-solutions.md)

docs/ide/create-new-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ If you want to add an additional project to a solution, right-click the solution
9797

9898
## See also
9999

100-
- [Create solutions and projects](creating-solutions-and-projects.md)
100+
- [Work with solutions and projects](creating-solutions-and-projects.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ Visual Studio allows you to specify how more than one project is run when you st
3131
## See also
3232

3333
- [Compile and build](../ide/compiling-and-building-in-visual-studio.md)
34-
- [Create solutions and projects](../ide/creating-solutions-and-projects.md)
34+
- [Work with solutions and projects](../ide/creating-solutions-and-projects.md)
3535
- [Manage project and solution properties](../ide/managing-project-and-solution-properties.md)

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Solutions and projects overview
2+
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.
44
ms.custom: SEO-VS-2020
55
ms.date: 12/15/2020
@@ -45,7 +45,7 @@ Project files are based on the [MSBuild XML schema](../msbuild/msbuild-project-f
4545
4646
## Solutions
4747

48-
A project is contained within a *solution*. Despite its name, a solution is not an "answer". It's simply a container for one or more related projects, along with build information, Visual Studio window settings, and any miscellaneous files that aren't associated with a particular project. A solution is described by a text file (extension *.sln*) with its own unique format; it's not intended to be edited by hand.
48+
A project is contained within a *solution*. Despite its name, a solution is not an "answer". It's simply a container for one or more related projects, along with build information, Visual Studio window settings, and any miscellaneous files that aren't associated with a particular project.
4949

5050
### Solution file
5151

@@ -56,6 +56,9 @@ Visual Studio uses two file types (*.sln* and *.suo*) to store settings for solu
5656
|.sln|Visual Studio Solution|Organizes projects, project items, and solution items in the solution.|
5757
|.suo|Solution User Options|Stores user-level settings and customizations, such as breakpoints.|
5858

59+
> [!IMPORTANT]
60+
> A solution is described by a text file (extension *.sln*) with its own unique format; it's not intended to be edited by hand. Conversely, the *.suo* file is a hidden file that is not displayed under the default File Explorer settings. To show hidden files, on the **View** menu in File Explorer, select the **Hidden Items** checkbox.
61+
5962
### Solution folder
6063

6164
A "solution folder" is a virtual folder that's only in **Solution Explorer**, where you can use it to group projects in a solution. If you want to locate a solution file on a computer, 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).

0 commit comments

Comments
 (0)