使用 Visual Studio 2010 构建 x64 WIX 项目?
我无法让 VS2010 为 x64 构建 WIX 项目 - 这意味着我可以添加平台,但它不会构建它。
重现步骤:
- 新建项目> Windows 安装程序 XML >设置项目(使用默认名称、位置等)
- Build >配置管理器>主动解决方案平台>
- 新平台:x64
- 从以下位置复制设置:x86
- 创建新项目平台:选中(我也尝试取消选中,但没有更好)
- 确定关闭“新建解决方案平台”对话框
- 返回配置管理器,选择 x64 作为平台
- 关闭配置管理器
- 重新打开配置管理器
结果:平台已恢复为 x86。
预期结果:平台仍设置为 x64。
我错过了什么吗?我不可能是唯一遇到这种情况的人吧?
I can't get VS2010 to build a WIX project for x64 - meaning I can add the platform, but it doesn't build it.
Steps to reproduce:
- New Project > Windows Installer XML > Setup Project (Use default name, location, etc)
- Build > Configuration Manager > Active Solution Platform >
- New Platform: x64
- Copy settings from: x86
- Create new project platforms: Checked (I tried unchecked as well, no better)
- OK to close the New Solution Platform dialog
- Back in Configuration Manager, select x64 for the Platform
- Close the Configuration Manager
- Re-open the Configuration Manager
Results: Platform has reverted to x86.
Expected Results: Platform is still set to x64.
Am I missing something? I can't be the only person running into this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WiX 绝对支持 x64!我遇到了同样的问题,这似乎是一个疯狂的问题,因为我也让它适用于 x86 和 x64 的另一个解决方案。因此,我比较了两个解决方案文件,并找出了无法正常工作的文件出了什么问题。
这是一个生成的非工作的。为了使其工作,我替换了“=”后面的前四个字符串,并进行了一些 x86 和 x64 构建。这对我有用。
这是相同但有效的代码:
希望也适合您
WiX definitely supports x64! I got the same issue and that seems to be somehow a crazy issue as I also got it working for another solution for x86 and x64. So I compared the two solution files and figured out what was going wrong with the one not working.
This is a generated nonworking one. To make it work, I replaced the first four strings behind the "=" and played a bit with doing an x86 and x64 build. That worked for me.
Here is the same but working code:
Hope that works for you as well
几分钟前我在 VS2010 中也遇到了同样的问题。我通过这样做解决了问题:
奇怪但它可以工作:-)
I had the same problem just a few minutes ago in VS2010. I solved the problem by doing this:
Strange but it works :-)