引用DLL进行分发 [英] Referencing DLLs to distribute

查看:68
本文介绍了引用DLL进行分发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对整个发布过程都不熟悉。


我正在编写的几个使用常见.NET DLL的程序。我希望

每个程序在COMMON中使用相同的DLL。夹。如何获取

发布的版本来引用这些DLL?


调试版本工作正常(在VS环境中)。


谢谢,

Doug

I am kinda new to the whole distribution process.

I several programs that I am writing that use common .NET DLLs. I want
each program to use the same DLLs in a "COMMON" folder. How do I get
the released build to reference those DLLs?

The debug version works fine (within the VS Environment).

Thanks,
Doug

推荐答案

Doug,


你需要将常见的DLL保存在与发行版EXE相同的文件夹中。

另一种选择是将常见的DLL安装到全局中

程序集缓存,但这会使部署稍微复杂。


您可能需要检查创建安装和部署项目;

这将允许您构建一个简单的MSI,用于分发您的

申请。


HTH

Andy

Doug,

You need to keep the common DLLs in the same folder as the release EXE.
Another option would be to install the common DLLs into the Global
Assembly Cache, but this makes deployment slightly more complicated.

You may want to check into creating a Setup and Deployment project;
this will allow you to build a simple MSI for distributing your
application.

HTH
Andy


你的意思是为我正在写的每个EXE都有一个DLL副本吗?

好​​像是浪费空间。我希望有一个共同的

目录。


谢谢,

Doug

You mean to have a copy of the DLL for each EXE that I am writing?
Seems like kind of a waste of space. I was hoping to have a common
directory.

Thanks,
Doug




您可以通过添加codeBase来引用公共文件夹中的.dll。要为你的项目提供app / web.config文件的元素:

http://msdn.microsoft.com/library/de...rfCodeBase.asp


" Doug Crabtree"写道:

You can reference .dlls in a common folder by adding "codeBase" elements to
the app/web.config file(s) for your projects:

http://msdn.microsoft.com/library/de...rfCodeBase.asp

"Doug Crabtree" wrote:
我是整个发行过程的新手。

我正在编写的几个使用常见.NET DLL的程序。我希望每个程序在COMMON中使用相同的DLL。夹。如何获取已发布的版本以引用这些DLL?

调试版本工作正常(在VS环境中)。

谢谢,
道格
I am kinda new to the whole distribution process.

I several programs that I am writing that use common .NET DLLs. I want
each program to use the same DLLs in a "COMMON" folder. How do I get
the released build to reference those DLLs?

The debug version works fine (within the VS Environment).

Thanks,
Doug



这篇关于引用DLL进行分发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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