Skip to content

Commit e243fb7

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 8f6f2e8 + af3926f commit e243fb7

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
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)

docs/modeling/creating-a-windows-forms-based-domain-specific-language.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ The following image is the DSL definition used in this walkthrough.
8787

8888
- `Animal` - In the Properties window, set **Inheritance Modifier** to **Abstract**.
8989

90+
> [!NOTE]
91+
> The **Named Domain Class** tool and the other tools mentioned in this section are found in the **Toolbox** tool window. You can open or hide this window with **View** > **Toolbox**.
92+
9093
5. Use the **Domain Class** tool to create the following classes:
9194

9295
- `Sheep`

docs/msbuild/msbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For information about MSBuild for C++, see [MSBuild (C++)](/cpp/build/msbuild-vi
2929

3030
The following examples illustrate when you might run builds by invoking MSBuild from the command line instead of the Visual Studio IDE.
3131

32-
- Visual Studio isn't installed. ([Download MSBuild without Visual Studio](https://visualstudio.microsoft.com/downloads/?q=build+tools).)
32+
- Visual Studio isn't installed. To install MSBuild on a system that doesn't have Visual Studio, go to Build Tools for Visual Studio 2022 on the [downloads page](https://visualstudio.microsoft.com/downloads/). Another way of getting MSBuild is to install the [.NET SDK](/dotnet/core/sdk#acquiring-the-net-sdk).
3333

3434
- You want to use the 64-bit version of MSBuild, and you're using Visual Studio 2019 or earlier. This version of MSBuild is usually unnecessary, but it allows MSBuild to access more memory.
3535

docs/test/walkthrough-creating-and-running-unit-tests-for-managed-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ A test method must meet the following requirements:
272272

273273
## Fix your code and rerun your tests
274274

275-
The test result contains a message that describes the failure. For the `AreEqual` method, the message displays what was expected and what was actually received. You expected the balance to decrease, but instead it increased by the amount of the withdrawal.
275+
The test result contains a message that describes the failure. You may need to drill down to see this message. For the `AreEqual` method, the message displays what was expected and what was actually received. You expected the balance to decrease, but instead it increased by the amount of the withdrawal.
276276

277277
The unit test has uncovered a bug: the amount of the withdrawal is *added* to the account balance when it should be *subtracted*.
278278

0 commit comments

Comments
 (0)