php/php-sdk-binary-tools

About Visual C++ target version

Closed this issue · 3 comments

Do you intend to support Visual C++ 2022 (or later)?

Visual C++ 2022 is supported, it uses vs17 I believe. I saw a commit supporting it.

Invoke phpsdk-vc14-x64.bat will find the vs dir, but the condition of vs version is [16,17), so couldn't find the vs dir. it will faild.

D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text
D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -products Microsoft.VisualStudio.Product.BuildTools -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text
D:\var\source\php-sdk-binary-tools-php-sdk-2.2.0\bin\vswhere -nologo -version "[16,17)" -prerelease -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text

cmb69 commented

Indeed, Visual Studio 2022 (aka. vs17) is supported as of cc7c11a. Just invoke phpsdk_vs17-x64.bat to keep going.