简体   繁体   English

在Visual Studio安装程序中添加Project输出时,如何添加Project Dependency DLL?

[英]How to add Project Dependency DLL's when adding Project output in the Visual Studio installer?

I'm using visual studio 2015 , Microsoft Visual Studio 2015 Installer . 我使用visual studio 2015Microsoft Visual Studio 2015 Installer I'm creating the sample project for demonstrate my issue. 我正在创建示例项目来演示我的问题。

Step1: I'm creating the SampleSetUpProject in wpf Application. 步骤1:我正在wpf应用程序中创建SampleSetUpProject

Step2: Creating the ClassLibrary1 Project and adding the itextsharp reference in that project. 步骤2:创建ClassLibrary1项目,并在该项目中添加itextsharp引用。

Step3: I'm creating the Setup1 Project in that application. 步骤3:我正在该应用程序中创建Setup1项目。 In Application Folder adding Project output, the dependency DLL itextsharp not added in the Application folder. 在添加项目输出的“应用程序文件夹”中,未在“应用​​程序”文件夹中添加依赖项DLL itextsharp。 How to added the dependency dll adding project output? 如何添加依赖dll来添加项目输出?

Step4 : In application output directory my DLL's are there. 步骤4:在应用程序输出目录中,我的DLL在那里。 But adding project output it's not added. 但是没有添加项目输出。 If any possibilities are there for adding the Dependency dll's adding Project output ? 是否有任何可能添加依赖dll的添加Project输出

Image for Adding Project output. 用于添加项目输出的图像。 Image link 图片链接

A setup can't know every one of your dependencies - for example there is nothing about a COM call that identifies a required Dll because the code references a GUID - so they need to be added manually. 安装程序无法知道您的每个依赖项-例如,关于COM调用的内容并不能识别出所需的Dll,因为代码引用了GUID-因此,您需要手动添加它们。 As your "Add" dialog shows, just add the Dlls (add file) and so on, to install to whichever location they are needed in. And another issue is that not all dependencies will be in the Application Directory - some (such as a shared COM Dll) need to be installed and registered in a common location. 如“添加”对话框所示,只需添加Dll(添加文件)等,然后将其安装到所需的任何位置即可。另一个问题是,并非所有依赖项都位于应用程序目录中-有些(例如共享COM Dll)需要在公共位置安装和注册。 So some dependencies might be in Common Files, the GAC and so on. 因此,某些依赖项可能在通用文件,GAC等中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM