Skip to content

Commit 528f714

Browse files
authored
Merge pull request #8396 from MicrosoftDocs/main637970654831539388sync_temp
Repo sync for protected CLA branch
2 parents b7dab0d + e243fb7 commit 528f714

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

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

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'What are Visual Studio solutions & 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: 09/14/2021
5+
ms.date: 08/25/2022
66
ms.topic: conceptual
77
f1_keywords:
88
- vs.openproject
@@ -25,20 +25,20 @@ ms.workload:
2525

2626
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
2727

28-
In this article, you'll learn what a *project* and a *solution* is in Visual Studio. It also briefly covers the Solution Explorer tool window and how to create a new project.
28+
In this article, you'll learn what a *project* and a *solution* is in Visual Studio. It also briefly covers the [Solution Explorer](use-solution-explorer.md) tool window and how to create a new project.
2929

3030
> [!NOTE]
3131
> This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see [Projects and solutions in Visual Studio for Mac](/visualstudio/mac/projects-and-solutions).
3232
3333
## Projects
3434

35-
When you create an app or website in Visual Studio, you start with a *project*. In a logical sense, a project contains all files that are compiled into an executable, library, or website. Those files can include source code, icons, images, data files, and so on. A project also contains compiler settings and other configuration files that might be needed by various services or components that your program communicates with.
35+
When you create an app or website in Visual Studio, you start with a *project*. In a logical sense, a project contains all files that are compiled into an executable, library, or website. Those files can include source code, icons, images, data files, and more. A project also contains compiler settings and other configuration files that might be needed by various services or components that your program communicates with.
3636

3737
### Project file
3838

39-
Visual Studio uses [MSBuild](../msbuild/msbuild.md) to build each project in a solution, and each project contains an MSBuild project file. The file extension reflects the type of project, for example, a C# project (.csproj), a Visual Basic project (.vbproj), or a database project (.dbproj). The project file is an XML document that contains all the information and instructions that MSBuild needs in order to build your project, including the content, platform requirements, versioning information, web server or database server settings, and the tasks to perform.
39+
Visual Studio uses [MSBuild](../msbuild/msbuild.md) to build each project in a solution, and each project contains an MSBuild project file. The file extension reflects the type of project, for example, a C# project (.csproj), a Visual Basic project (.vbproj), or a database project (.dbproj). The project file is an XML document that contains all the information and instructions that MSBuild needs to build your project. Such information and instructions include the content, platform requirements, versioning information, web server or database server settings, and the tasks to perform.
4040

41-
Project files are based on the [MSBuild XML schema](../msbuild/msbuild-project-file-schema-reference.md). To look at the contents of newer, [sdk-style project files](../msbuild/how-to-use-project-sdk.md) in Visual Studio, right-click on the project node in **Solution Explorer** and select **Edit \<projectname\>**. To look at the contents of .NET Framework and other projects of that style, first unload the project (right-click on the project node in **Solution Explorer** and select **Unload Project**). Then, right-click on the project and choose **Edit \<projectname\>**.
41+
Project files are based on the [MSBuild XML schema](../msbuild/msbuild-project-file-schema-reference.md). To look at the contents of newer, [SDK-style project files](../msbuild/how-to-use-project-sdk.md) in Visual Studio, right-click the [project node](use-solution-explorer.md#project-node-context-menu-options) in **Solution Explorer** and select **Edit \<projectname\>**. To look at the contents of .NET projects, first unload the project (right-click the project node in **Solution Explorer** and select **Unload Project**). Then, right-click on the project and choose **Edit \<projectname\>**.
4242

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).
@@ -53,7 +53,7 @@ When you create a new project, Visual Studio saves it to its default location, *
5353

5454
## Solutions
5555

56-
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.
56+
A project is contained within a *solution*. Despite its name, a solution isn't 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.
5757

5858
### Solution file
5959

@@ -76,20 +76,15 @@ A "solution folder" is a virtual folder that's only in **Solution Explorer**, wh
7676
7777
## Solution Explorer
7878

79-
After you create a new project, you can use **[Solution Explorer](use-solution-explorer.md)** 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:
80-
81-
82-
::: moniker range=">=vs-2019"
79+
After you create a new project, you can use **[Solution Explorer](use-solution-explorer.md)** to view and manage the project and solution and their associated items. The following screenshot shows **Solution Explorer** with a C# solution that contains two projects:
8380

8481
![Screenshot of Solution Explorer with two projects in Visual Studio.](../ide/media/solution-explorer.png)
8582

8683
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.
8784

88-
::: moniker-end
89-
90-
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. For more information, see [How to use Solution Explorer](use-solution-explorer.md).
85+
Many menu commands are available from the [right-click context menu](use-solution-explorer.md#solution-node-context-menu-options) 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. For more information, see [Learn about Solution Explorer](use-solution-explorer.md).
9186

92-
For ASP.NET Core projects, you can customize how files are nested in **Solution Explorer**. For more information, see [Customize file nesting in Solution Explorer](file-nesting-solution-explorer.md).
87+
For ASP.NET Core projects, you can customize how files are nested in **Solution Explorer**. For more information, see [File nesting in Solution Explorer](file-nesting-solution-explorer.md).
9388

9489
> [!TIP]
9590
> If you've closed Solution Explorer and you want to open it again, choose **View** > **Solution Explorer** from the menu bar, or press **Ctrl**+**Alt**+**L**. And, if you've closed side tabs and you want to restore them to their default locations, choose **Window** > **Reset Window Layout** from the menu bar.
@@ -99,8 +94,6 @@ For ASP.NET Core projects, you can customize how files are nested in **Solution
9994
10095
## See also
10196

102-
- [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md)
10397
- [Manage project and solution properties](managing-project-and-solution-properties.md)
10498
- [Filtered solutions in Visual Studio](filtered-solutions.md)
105-
- [Port, migrate, and upgrade projects](../porting/port-migrate-and-upgrade-visual-studio-projects.md)
106-
- [Projects and solutions (Visual Studio for Mac)](/visualstudio/mac/projects-and-solutions)
99+
- [Project migration and upgrade reference for Visual Studio](../porting/port-migrate-and-upgrade-visual-studio-projects.md)

0 commit comments

Comments
 (0)