Closed nono303 closed 4 years ago
Any particular reason why you use VS 2019 preview? Anyhow, VS 2019 preview works fine on AppVeyor with an unmodified php-sdk-2.2.0beta6, see https://ci.appveyor.com/project/derickr/xdebug/builds/25369672.
Supporting multiple toolsets for a single VS installation could be interesting.
Any particular reason why you use VS 2019 preview?
preview (16.2.0p2) or not (16.1.3) doesn't change anything
Anyhow, VS 2019 preview works fine on AppVeyor with an unmodified php-sdk-2.2.0beta6, see https://ci.appveyor.com/project/derickr/xdebug/builds/25369672.
I agree... for vs16 build, not for vc15
Supporting multiple toolsets for a single VS installation could be interesting.
That's the point of my request ;)
@nono303 sure, that's a justified request, as a newer Visual Studio version still can use another toolset. Whereby we've recently moved to vs
instead of vc
, to refer to the default toolset in the given Visual Studio version. Doing this might be confusing in the future, but functionally it should be possible. @cmb, what do you think?
We have a little to no chance to come to an implementation in the close future. If someone can, we could at least have a better idea looking at a pull request. Please note though, that we have to keep the existing functionality unchanged.
Thanks.
Hi @weltling, I try to manage VC15 & VS16 php build with VS 2019 preview.
according to https://github.com/Microsoft/vswhere/issues/158 VS 2019 preview is only seen by vswhere as a prerelease... Also note that
vswhere -nologo -version "[15,16)" -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text -prerelease
didn't return anything wherevswhere -nologo -version 16 -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text -prerelease
&vswhere -nologo -version 15 -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath -format text -prerelease
both correctly return the VS installation path ^^Also, having the two version of the compiler tools (14.16 & 14.22) one the same VS 2019 preview instance, here is the way I've managed it with
phpsdk_setshell.bat
where
vcvars_ver
isFor sure it may not be the good way to do it but this draft works ^^