如何将Nuget软件包dll添加到Wix安装程序 [英] How to Add Nuget package dlls to Wix installer

查看:69
本文介绍了如何将Nuget软件包dll添加到Wix安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Nuget软件包dll添加到Wix安装程序.我尝试添加

How to Add Nuget package dlls to Wix installer. I tried with adding

<?define SourceDirectory = $(var.SolutionDir)\ProjectName\bin\Release" ?>

   <Component Id="cmpId1"  Guid="BF985D52-BA8C-4E4F-84CC-B5A95520FBD4">
      <File Id="fileId1" KeyPath="yes" Source="$(var.SourceDirectory)\Unity.Abstractions.dll" />
   </Component>

但不起作用.

请指导我如何将nuget软件包dll添加到wix安装程序中.

Please guide me how to add nuget package dll to wix installer.

谢谢,纳文(Naveen)

Thanks, Naveen

推荐答案

创建一个新项目(库),该项目为空,并在该新项目中安装nuget-package.在您的设置中,您将收集安装了nuget-package的新项目的buildoutput.

make a new project (library) that is empty and install the nuget-package in this new project. in your setup you collect the buildoutput of that new project that has the nuget-package installed.

<Component Id="cmpId1"  Guid="BF985D52-BA8C-4E4F-84CC-B5A95520FBD4">
      <File Id="fileId1" KeyPath="yes" Source="$(var.NugetCollectorProject.TargetDir)\Unity.Abstractions.dll" />
   </Component>

NugetCollectorProject是新项目.您的安装程序必须具有对该项目的引用,才能使用该var.projectname.targetdir

NugetCollectorProject is the new project. Your Setup must have a reference to that project to use that var.projectname.targetdir

这篇关于如何将Nuget软件包dll添加到Wix安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆