Update build_win.bat max version to Visual Studio 2022 (PR #11646, #11635)

This commit is contained in:
Justin Schuh 2023-11-12 11:17:45 -08:00 committed by Lukas Matena
parent ecf5716de0
commit 994ed51fa3
2 changed files with 16 additions and 9 deletions

View File

@ -1,8 +1,8 @@
REM /|/ Copyright (c) 2022 Jebtrix @Jebtrix
REM /|/ Copyright (c) 2021 Justin Schuh @jschuh
REM /|/
REM /|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
REM /|/
@REM /|/ Copyright (c) 2022 Jebtrix @Jebtrix
@REM /|/ Copyright (c) 2021 Justin Schuh @jschuh
@REM /|/
@REM /|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
@REM /|/
@setlocal disableDelayedExpansion enableExtensions
@IF "%PS_ECHO_ON%" NEQ "" (echo on) ELSE (echo off)
@GOTO :MAIN
@ -68,10 +68,14 @@ SET PS_DEPS_PATH_FILE_NAME=.DEPS_PATH.txt
SET PS_DEPS_PATH_FILE=%~dp0deps\build\%PS_DEPS_PATH_FILE_NAME%
SET PS_CONFIG_LIST="Debug;MinSizeRel;Release;RelWithDebInfo"
REM The officially supported toolchain version is 16 (Visual Studio 2019)
REM TODO: Update versions after Boost gets rolled to 1.78 or later
REM Update this script for new versions by setting PS_VERSION_SUPPORTED to a
REM new minimum version and setting PS_VERSION_EXCEEDED to the maximum supported
REM version plus one.
REM The officially supported toolchain versions are:
REM Minimum: 16 (Visual Studio 2019)
REM Maximum: 17 (Visual Studio 2022)
SET PS_VERSION_SUPPORTED=16
SET PS_VERSION_EXCEEDED=17
SET PS_VERSION_EXCEEDED=18
SET VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe
IF NOT EXIST "%VSWHERE%" SET VSWHERE=%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe
FOR /F "tokens=4 USEBACKQ delims=." %%I IN (`"%VSWHERE%" -nologo -property productId`) DO SET PS_PRODUCT_DEFAULT=%%I

View File

@ -2,7 +2,10 @@
### Install the tools
Install Visual Studio Community 2019 from [visualstudio.microsoft.com/vs/](https://visualstudio.microsoft.com/vs/). Older versions are not supported as PrusaSlicer requires support for C++17.
Install Visual Studio Community 2022 (preferred) or 2019 from [visualstudio.microsoft.com/vs/](https://visualstudio.microsoft.com/vs/).
Older versions are not supported as PrusaSlicer requires support for C++17.
Newer versions are not supported as they have not been fully tested and determined to be compatible.
Select all workload options for C++ and make sure to launch Visual Studio after install (to ensure that the full setup completes).
Install git for Windows from [gitforwindows.org](https://gitforwindows.org/)