Skip to content

Commit d577818

Browse files
authored
Merge pull request #7688 from TerryGLee/tglee-solproj
updates to Solution & Projects topics
2 parents ab2621a + 8538463 commit d577818

File tree

4 files changed

+25
-13
lines changed

4 files changed

+25
-13
lines changed

docs/ide/create-new-project.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ If you want to add an additional project to a solution, right-click the solution
104104

105105
- [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md)
106106
- [Work with solutions and projects](creating-solutions-and-projects.md)
107-
- [Manage project and solution properties](managing-project-and-solution-properties.md)
107+
- [Manage project and solution properties](managing-project-and-solution-properties.md)
108+
- [Create projects (Visual Studio for Mac)](/visualstudio/mac/create-new-projects)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,3 @@ You can access File Explorer in Windows by using Solution Explorer in Visual Stu
152152
- [Microsoft's open source repositories on GitHub](https://github.com/Microsoft)
153153
- [Developer code samples](https://code.msdn.microsoft.com/)
154154
- [Resources for troubleshooting Visual Studio IDE errors](./reference/resources-for-troubleshooting-integrated-development-environment-errors.md)
155-
- [Create projects (Visual Studio for Mac)](/visualstudio/mac/create-new-projects)

docs/ide/media/solution-explorer.png

92.3 KB
Loading

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.
44
ms.custom: "SEO-VS-2020, contperf-fy21q2"
5-
ms.date: 12/17/2020
5+
ms.date: 12/31/2020
66
ms.topic: conceptual
77
f1_keywords:
88
- vs.addnewitem
@@ -43,6 +43,14 @@ Project files are based on the [MSBuild XML schema](../msbuild/msbuild-project-f
4343
> [!NOTE]
4444
> You don't have to use solutions or projects in Visual Studio to edit, build, and debug code. You can simply open the folder that contains your source files in Visual Studio and start editing. For more information, see [Develop code in Visual Studio without projects or solutions](../ide/develop-code-in-visual-studio-without-projects-or-solutions.md).
4545
46+
### Create new projects
47+
48+
The easiest way to create a new project is to use a project template for the project type you want. A project template includes a basic set of pre-generated code files, config files, assets, and settings. Use **File** > **New** > **Project** to select a project template. For more information, see [Create a new project](create-new-project.md).
49+
50+
You can also create a custom project template that you can use to create new projects from. For more information, see [Create project and item templates](../ide/creating-project-and-item-templates.md).
51+
52+
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).
53+
4654
## Solutions
4755

4856
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.
@@ -63,26 +71,30 @@ Visual Studio uses two file types (*.sln* and *.suo*) to store settings for solu
6371

6472
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).
6573

66-
## Create new projects
67-
68-
The easiest way to create a new project is to use a project template for the project type you want. A project template includes a basic set of pre-generated code files, config files, assets, and settings. Use **File** > **New** > **Project** to select a project template. For more information, see [Create a new project](create-new-project.md).
69-
70-
You can also create a custom project template that you can use to create new projects from. For more information, see [Create project and item templates](../ide/creating-project-and-item-templates.md).
71-
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-
7474
> [!TIP]
7575
> 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).
7676
7777
## Solution Explorer
7878

7979
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:
8080

81+
::: moniker range="vs-2017"
82+
8183
![Screenshot of Solution Explorer with two projects.](../ide/media/vs2015_solution_explorer.png)
8284

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.
85+
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.
86+
87+
::: moniker-end
88+
89+
::: moniker range="vs-2019"
90+
91+
![Screenshot of Solution Explorer with two projects in Visual Studio 2019.](../ide/media/solution-explorer.png)
92+
93+
The toolbar across the top of **Solution Explorer** has buttons to switch from a solution view to a folder view, filter pending changes, show all files, collapse all nodes, view [properties](managing-project-and-solution-properties.md) pages, preview code in the [code editor](writing-code-in-the-code-and-text-editor.md), and more.
94+
95+
::: moniker-end
8496

85-
To view a list of some of the icons that appear in Solution Explorer, see [Class View and Object Browser icons](class-view-and-object-browser-icons.md).
97+
Many menu commands are available from the right-click context 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.
8698

8799
> [!TIP]
88100
> If you've closed Solution Explorer and you want to open it again, choose **Window** > **Reset Window Layout** from the menu bar.

0 commit comments

Comments
 (0)