Skip to content

Commit ad581e8

Browse files
authoredMay 22, 2023
Update BuildFromSource.md to reflect need for VS on Windows (dotnet#48365)
1 parent 3639b9b commit ad581e8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
 

‎docs/BuildFromSource.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ To get started, fork this repo and then clone it locally. This workflow assumes
2828

2929
> :warning: All Windows commands below assume a PowerShell prompt.
3030

31-
The steps you follow next depend on your preferred development environment:
32-
33-
- [Visual Studio on Windows](#visual-studio-on-windows)
34-
- [Visual Studio Code (VS Code) or other editors on Windows, Linux, Mac](#visual-studio-code-or-other-editor-on-windows-linux-mac)
35-
- [Codespaces on GitHub](#codespaces-on-github)
36-
37-
## Visual Studio on Windows
38-
39-
1. To install Visual Studio on your machine, use the official installer script in the repo.
31+
1. If you're on Windows, install Visual Studio (even if you aren't using it to build) to get the required C++ components and native tools. To install Visual Studio on your machine, use the official installer script in the repo.
4032

4133
> :warning: Even if you have Visual Studio installed on your machine, we recommend running this installation script to make sure that the correct Visual Studio components are installed.
4234
>
@@ -51,6 +43,14 @@ The steps you follow next depend on your preferred development environment:
5143

5244
If you are seeing errors similar to `the imported project "....\aspnetcore.tools\msbuild\17.1.0\tools\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Default.props" was not found`, try installing/updating Visual Studio as above.
5345

46+
The steps you follow next depend on your preferred development environment:
47+
48+
- [Visual Studio on Windows](#visual-studio-on-windows)
49+
- [Visual Studio Code (VS Code) or other editors on Windows, Linux, Mac](#visual-studio-code-or-other-editor-on-windows-linux-mac)
50+
- [Codespaces on GitHub](#codespaces-on-github)
51+
52+
## Visual Studio on Windows
53+
5454
1. Before you open project in Visual Studio, install the required dependencies and set up the repo by running the `restore.cmd` script in the root of the repo:
5555

5656
```powershell

0 commit comments

Comments
 (0)
Please sign in to comment.