将WiX 3.7安装到Visual Studio 2013更新4或VS2015中。

时间:2022-03-21 13:44:59

I have both VS 2013 Ultimate SP4 and VS 2015 Enterprise on my system. I installed WiX Extension 3.7 (because it's the one supported by Visual Studio Online). WiX templates don't show up in either product. I tried restarting VS, rebooting the computer, removing and re-installing WiX a couple times.

我的系统上有VS 2013终极SP4和VS 2015企业。我安装了WiX扩展3.7(因为它是Visual Studio在线支持的)。WiX模板不会出现在任何产品中。我尝试重新启动VS,重新启动计算机,删除和重新安装WiX几次。

Other postings around the internet that talk about how do this always tell you how to copy the WiX bits from an older VS installation forward to the newer one. I have no older VS installed, and hope I don't have to put in VS-- to install WiX so I can copy forward.

互联网上的其他文章都在讨论如何这样做,它们总是告诉你如何从一个较老的VS安装到一个较新的。我没有安装较老的VS,希望我不需要安装VS——安装WiX,这样我就可以继续复制。

How can I get the WiX 3.7 extension to work correctly with VS 2013 (or 2015 for that matter - either is fine with me)?

我怎样才能让WiX 3.7的扩展在VS 2013(或者是2015年——对我来说无所谓)的情况下正常工作?

1 个解决方案

#1


1  

You can edit the wisproj file and make sure it imports the wix targets file from a location under your control (in source control for example), that way you have total control over which version of wix is used during the build, even on VSO.

您可以编辑wisproj文件,并确保它从您控制的位置(例如在源代码控制中)导入wix目标文件,这样您就可以完全控制在构建期间使用哪个版本的wix,甚至在VSO上也是如此。

To make that even easier, you can reference the following NuGet package, it puts the latest version of Wix and the targets file in the packages folder.

为了使这更容易,您可以引用以下NuGet包,它将最新版本的Wix和目标文件放在packages文件夹中。

Install-Package WiX -Version 3.10.0.2103-pre1 -Pre

Source

#1


1  

You can edit the wisproj file and make sure it imports the wix targets file from a location under your control (in source control for example), that way you have total control over which version of wix is used during the build, even on VSO.

您可以编辑wisproj文件,并确保它从您控制的位置(例如在源代码控制中)导入wix目标文件,这样您就可以完全控制在构建期间使用哪个版本的wix,甚至在VSO上也是如此。

To make that even easier, you can reference the following NuGet package, it puts the latest version of Wix and the targets file in the packages folder.

为了使这更容易,您可以引用以下NuGet包,它将最新版本的Wix和目标文件放在packages文件夹中。

Install-Package WiX -Version 3.10.0.2103-pre1 -Pre

Source