From 839e029fad5709e1a15523b4ffb5c493e5009317 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:23:33 +0100 Subject: [PATCH 1/4] Use PlatformToolSet v145 by default when building with VS 2026 Furthermore, do not warn anymore when building with v145 --- PCbuild/python.props | 2 +- PCbuild/pythoncore.vcxproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PCbuild/python.props b/PCbuild/python.props index 7840e2a1cfc8e2..58240539ba5bac 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -11,7 +11,7 @@ We set BasePlatformToolset for ICC's benefit, it's otherwise ignored. --> - v143 + v145 v143 v142 v141 diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 5e7e739dc5f787..d3bfbf8cf18b09 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -728,7 +728,7 @@ - + From 0f803d49f9acdf15f263f5d5ec41cdecf0ede326 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:26:34 +0100 Subject: [PATCH 2/4] Blurb it. --- .../next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst diff --git a/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst b/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst new file mode 100644 index 00000000000000..ebcfda54da39a7 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst @@ -0,0 +1,2 @@ +When building with Visual Studio 2026 (Version 18), use PlatformToolSet v145 +by default. Patch by Chris Eibl. From 3e4dccb58a86cd1041b974c8346d2aa6a4b9321a Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Thu, 12 Feb 2026 07:26:06 +0100 Subject: [PATCH 3/4] warn for older tool sets --- PCbuild/pythoncore.vcxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index d3bfbf8cf18b09..bc8c5821749230 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -728,7 +728,7 @@ - + From dbb04874107e17fe38332eed6069badbc8eaa1e1 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Thu, 12 Feb 2026 21:54:15 +0100 Subject: [PATCH 4/4] use v145 in pythonba.vcxproj --- Tools/msi/bundle/bootstrap/pythonba.vcxproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/msi/bundle/bootstrap/pythonba.vcxproj b/Tools/msi/bundle/bootstrap/pythonba.vcxproj index 3970e857894ba5..4b38582f0d31e5 100644 --- a/Tools/msi/bundle/bootstrap/pythonba.vcxproj +++ b/Tools/msi/bundle/bootstrap/pythonba.vcxproj @@ -21,6 +21,7 @@ Release Win32 + v145 v143 v142 v141