我正在尝试编译一个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安装一些东西,但不记得它是什么.
小智 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)
| 归档时间: |
|
| 查看次数: |
17978 次 |
| 最近记录: |