diff options
author | Damian Edwards <damian@damianedwards.com> | 2022-03-15 00:47:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 00:47:53 +0300 |
commit | 45376ce136c837f434906664c7a890a35c7dd887 (patch) | |
tree | 28a4eb8208978a2d461710bfb4cdf544ff5f23b7 /docs | |
parent | 74e885aa7d392cb9d43edc6bfc92bb758ba9b48b (diff) |
Remove VS2019 from install script (#40694)
- Update InstallVisualStudio.ps1 to only support VS2022
- Add support for IntPreview (dogfood) channel, e.g. InstallVisualStudio.ps1 -Channel Dogfood
- Update the build from source docs to refer to VS2022
- Remove trailing whitespace in VS installer manifest files
Diffstat (limited to 'docs')
-rw-r--r-- | docs/BuildFromSource.md | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/BuildFromSource.md b/docs/BuildFromSource.md index 97a6d6d0be..ab5b5330be 100644 --- a/docs/BuildFromSource.md +++ b/docs/BuildFromSource.md @@ -72,25 +72,26 @@ Building ASP.NET Core on Windows (10, version 1803 or newer) requires that you h > :bulb: Be sure you have least 10 GB of disk space and a good Internet connection. The build scripts will download several tools and dependencies onto your machine. -#### [Visual Studio 2019](https://visualstudio.com) +#### [Visual Studio 2022](https://visualstudio.com) -Visual Studio 2019 (16.10 Preview 3) is required to build the repo locally. If you don't have visual studio installed you can run [eng/scripts/InstallVisualStudio.ps1](/eng/scripts/InstallVisualStudio.ps1) to install the exact required dependencies. +Visual Studio 2022 (17.1 or above) is required to build the repo locally. If you don't have Visual Studio installed you can run [eng/scripts/InstallVisualStudio.ps1](/eng/scripts/InstallVisualStudio.ps1) to install the exact required dependencies. > :bulb: By default, the script will install Visual Studio Enterprise Edition, however you can use a different edition by passing the `-Edition` flag. > :bulb: To install Visual Studio from the preview channel, you can use the `-Channel` flag to set the channel (`-Channel Preview`). > :bulb: Even if you have installed Visual Studio, we still recommend using this script to install again to avoid errors due to missing components. +> :bulb: To update an existing Visual Studio installation or customize the installation path, you can use the `-InstallPath` flag (`-InstallPath "D:\Program Files\Microsoft Visual Studio\2022\Enterprise"`). ```powershell -./eng/scripts/InstallVisualStudio.ps1 [-Edition {Enterprise|Community|Professional}] [-Channel {Release|Preview}] +./eng/scripts/InstallVisualStudio.ps1 [-Edition {Enterprise|Community|Professional}] [-Channel {Release|Preview}] ``` > :bulb: To execute the setup script or other PowerShell scripts in the repo, you may need to update the execution policy on your machine. > You can do so by running the `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser` command > in PowerShell. For more information on execution policies, you can read the [execution policy docs](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy). -The [global.json](/global.json) file specifies the minimum requirements needed to build using `msbuild`. The [eng/scripts/vs.16.json](/eng/scripts/vs.16.json) file provides a description of the components needed to build within VS. If you plan on developing in Visual Studio, you will need to have these components installed. +The [global.json](/global.json) file specifies the minimum requirements needed to build using `msbuild`. The [eng/scripts/vs.17.json](/eng/scripts/vs.17.json) file provides a description of the components needed to build within Visual Studio. If you plan on developing in Visual Studio, you will need to have these components installed. -> :bulb: The `InstallVisualStudio.ps1` script mentioned above reads from the `vs.17.json` file to determine what components to install. +> :bulb: The `InstallVisualStudio.ps1` script mentioned above reads from the `vs.17[.channel].json` file to determine what components to install. #### [Git](https://git-scm.org) on Windows |