I tried to build Python 3.11.10 with Visual Studio 2022 (v143) and I get following error at the end of compilation.
Project "C:\Users\pc\Desktop\MyFile\python\Python-3.11.10\Tools\msi\launcher\launch
er.wixproj" (1) is building "C:\Users\pc\Desktop\MyFile\python\Python-3.11.10\PCbuild\pyshellext.vcxpro
j" (2) on node 1 (default targets).
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft
\VC\v170\Microsoft.CppBuild.targets(463,5): error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 bui
ld tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\Users\pc\Desktop\MyFile\python
\Python-3.11.10\PCbuild\pyshellext.vcxproj]
I used following command to build: Tools\msi\buildrelease.bat
I used the same environment to build python 3.10.15, and all worked well.
There is a same issue in Jul 2023, but no reply.