From 4008188654528e54aa1db5df5ef69428b7c520a6 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Thu, 11 Nov 2021 01:44:40 -0800 Subject: [PATCH] msvc: update to vs2022 and windows sdk 10.0.22000 --- Readme.md | 4 ++-- Source/Core/Common/SCMRevGen.vcxproj | 2 +- Source/PCH/pch.h | 8 ++++---- Source/VSProps/Base.Macros.props | 3 +-- Source/VSProps/Configuration.Base.props | 2 +- Source/dolphin-emu.sln | 4 ++-- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/Readme.md b/Readme.md index ba0805487c..5ec9acee9d 100644 --- a/Readme.md +++ b/Readme.md @@ -39,9 +39,9 @@ Dolphin can only be installed on devices that satisfy the above requirements. At ## Building for Windows Use the solution file `Source/dolphin-emu.sln` to build Dolphin on Windows. -Visual Studio 2019 16.3 or later is a hard requirement. Other compilers might be +Visual Studio 2022 17.0 or later is a hard requirement. Other compilers might be able to build Dolphin on Windows but have not been tested and are not -recommended to be used. Git and Windows 10 SDK must be installed when building. +recommended to be used. Git and Windows 11 SDK must be installed when building. Make sure to pull submodules before building: ```sh diff --git a/Source/Core/Common/SCMRevGen.vcxproj b/Source/Core/Common/SCMRevGen.vcxproj index 938df1c6f7..52d8cb7ef4 100644 --- a/Source/Core/Common/SCMRevGen.vcxproj +++ b/Source/Core/Common/SCMRevGen.vcxproj @@ -26,7 +26,7 @@ Utility false - v142 + v143 diff --git a/Source/PCH/pch.h b/Source/PCH/pch.h index 976b6cfc56..7996c611d4 100644 --- a/Source/PCH/pch.h +++ b/Source/PCH/pch.h @@ -6,15 +6,15 @@ #define STRINGIFY_HELPER(x) #x #define STRINGIFY(x) STRINGIFY_HELPER(x) -#if defined _MSC_FULL_VER && _MSC_FULL_VER < 192930133 +#if defined _MSC_FULL_VER && _MSC_FULL_VER < 193030705 #pragma message("Current _MSC_FULL_VER: " STRINGIFY(_MSC_FULL_VER)) -#error Please update your build environment to the latest Visual Studio 2019! +#error Please update your build environment to the latest Visual Studio 2022! #endif #include -#ifndef NTDDI_WIN10_VB +#ifndef NTDDI_WIN10_CO #pragma message("Current WDK_NTDDI_VERSION: " STRINGIFY(WDK_NTDDI_VERSION)) -#error Windows 10.0.19041 SDK or later is required +#error Windows 10.0.22000 SDK or later is required #endif #undef STRINGIFY diff --git a/Source/VSProps/Base.Macros.props b/Source/VSProps/Base.Macros.props index c8ec8c9178..1c7fd0d7cf 100644 --- a/Source/VSProps/Base.Macros.props +++ b/Source/VSProps/Base.Macros.props @@ -11,8 +11,7 @@ $(DolphinRootDir)Externals\ $(DolphinRootDir)Source\ $(SourceDir)Core\ - %windir%\System32\cscript - %windir%\Sysnative\cscript + %windir%\System32\cscript $(SourceDir)VSProps\ diff --git a/Source/VSProps/Configuration.Base.props b/Source/VSProps/Configuration.Base.props index 928c6dad77..b74336e634 100644 --- a/Source/VSProps/Configuration.Base.props +++ b/Source/VSProps/Configuration.Base.props @@ -1,7 +1,7 @@ - v142 + v143 Unicode x64