Skip to content

Building 3.10 with VS2022 fails #94151

Closed as not planned
Closed as not planned
@terryjreedy

Description

@terryjreedy

I just installed VS2022 Community edition and updated my repository (the last commits were removing unused idlelib imports).
Main and 3.11 built with no errors. However, for 3.10...

f:\dev\310>"F:\VS2022\Community\MSBuild\Current\Bin\msbuild.exe" "f:\dev\310\PCbuild\pcbuild.proj" /t:Build /m /nologo /v:m /clp:summary /p:Configuration=Debug /p:Platform=x64 /p:IncludeExternals=true /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:UseTestMarker= /p:GIT="C:\Users\Terry\AppData\Local\Programs\Git\cmd\git.exe"
  Killing any running python_d.exe instances...
  Generated sources are up to date
  Getting build info from C:\Users\Terry\AppData\Local\Programs\Git\cmd\git.exe
  Building heads/3.10:ee2ddc2d44 3.10
F:\VS2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(440,5)
: error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v1
42') cannot be found. To build using the v142 build tools, please install Visua
l Studio 2019 build tools.  Alternatively, you may upgrade to the current Visua
l Studio tools by selecting the Project menu or right-click the solution, and t
hen selecting "Retarget solution". [f:\dev\310\PCbuild\pythoncore.vcxproj]

Build FAILED.

My guess is that some update for main and 3.11 needs to be backported to 3.10. (Right-clicking in Windows Explorer does not show a Retarget option, so I presume that suggestion only applies within VS, which I don't use.)

@zooba @zware

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixesOS-windowsbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions