php / php/php-sdk-binary-tools

Multiple Visual Studio installation and explicit toolset selection

未关闭
#29 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
M4
星标
116
派生
50
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 phpsdk-starter.bat 及其 vswhere 调用开始,重点了解在安装了 Visual Studio 2019 和 2022 时如何处理 -s 14.16 请求。确定请求的工具集是否应选择匹配的安装,或者是否应记录该要求。在显式工具集的情况下得到处理,或其安装要求得到明确记录后,即可完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
build-system, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。