Microsoft.Deployment.WindowsInstaller在哪里找到?

Jos*_*off 26 wix

我正在尝试编译一个WiX安装程序(它有自定义操作,我怀疑是问题的根源)在构建服务器上,我收到以下错误:

  c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve
this reference. Could not locate the assembly "Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral,
 PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this
reference is required by your code, you may get compilation errors. [C:\code\rms1-moverssuite\src\RMSS.Setup.CustomActi
ons\RMSS.Setup.CustomActions.csproj]
Run Code Online (Sandbox Code Playgroud)

知道需要安装什么吗?我依稀记得我上次做这个时必须从Windows SDK安装一些东西,但不记得它是什么.

Chr*_*ter 33

它是Windows Installer XML(WiX)的一部分,它是一个以前来自Microsoft的开源项目,但后来转移到了Outercurve Foundation.它可以在CodePlex找到.3.7是最新版本.

此互操作程序集是Deployment Tools Foundation(DTF)的一部分,您将在开始菜单中找到安装的SDK帮助文件.实际的程序集将在C:\ Program Files(x86)\ WiX Toolset v3.7\SDK中找到.


小智 6

对我来说,这只是在 cproj 文件中提供参考提示,指向 Wix nuget 包。

<Reference Include="Microsoft.Deployment.WindowsInstaller"> 
 <HintPath>..\packages\WiX.3.11.2\tools\Microsoft.Deployment.WindowsInstaller.dll</HintPath>
</Reference>
Run Code Online (Sandbox Code Playgroud)


RBT*_*RBT 5

我从官方网站下载了 WiX v3.11 ,最终登陆到这个git hub 页面。该设置实际上是一个可执行文件 (*.exe),而不是一个 MSI,它向您显示此安装页面:

在此处输入图片说明

只需单击安装齿轮图标。安装完成后,Microsoft.Deployment.WindowsInstaller在 Visual Studio 解决方案资源管理器中选择引用,然后从工具栏中单击刷新。