Skip to content

Commit 1309b71

Browse files
authored
Add winget to windows-requirements.md (#110233)
1 parent cf66826 commit 1309b71

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/workflow/requirements/windows-requirements.md

+11
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@ Alternatively, if you would rather avoid modifying your machine state, you can u
8686

8787
This will set the `DOTNET_ROOT` and `PATH` environment variables to point to the locally acquired SDK under the `.dotnet` directory found at the root of the repo for the duration of this terminal session. Then, it will launch the Visual Studio instance that is registered for the `.sln` extension, and open the solution you passed as argument to the command-line.
8888

89+
## Installing dependencies with winget
90+
91+
All the tools mentioned above can be installed with the [Windows Package Manager](https://learn.microsoft.com/windows/package-manager/winget/):
92+
```ps1
93+
winget install -e --id Kitware.CMake
94+
winget install -e --id Python.Python.3.11
95+
winget install -e --id Git.Git
96+
winget install -e --id Ninja-build.Ninja
97+
winget install -e --id Microsoft.VisualStudio.2022.Community --override "--add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended"
98+
```
99+
89100
## Setting Environment Variables on Windows
90101

91102
As mentioned in the sections above, the commands that run the development tools have to be in your `PATH` environment variable. Their installers usually have the option to do it automatically for you enabled by the default, but if for any reason you need to set them yourself, here is how you can do it. There are two options. You can make them last only for that terminal instance, or you can set them directly to the system to make them permanent.

0 commit comments

Comments
 (0)