Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Visual Studio installation and explicit toolset selection #29

Open
cmb69 opened this issue Sep 4, 2024 · 0 comments
Open

Multiple Visual Studio installation and explicit toolset selection #29

cmb69 opened this issue Sep 4, 2024 · 0 comments

Comments

@cmb69
Copy link
Member

cmb69 commented Sep 4, 2024

If multiple Visual Studio versions are installed, and a toolset is explicitly request (-s option to phpsdk-starter.bat), only the latest Visual Studio is actually tried. E.g. for me I have Visual Studio 2019 and 2022, and have MSVC v141 installed only for Visual Studio 2019. Then doing phpsdk-starter.bat -c vc15 -a x64 -s 14.16 failed,

I think that is fixable by being more specific for vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 (in my case vswhere -requires Microsoft.VisualStudio.Component.VC.v141.x86.x64 would do), but it doesn't seem worth the trouble. Might still be good idea to document, that you either need to have the exact Visual Studio version you want to build with installed, or that you need to install older toolsets for the latest Visual Studio you have installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant