部署.NET DLL [英] deployment of a .NET DLL

查看:76
本文介绍了部署.NET DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

地狱


我发现使用.NET可以很容易地创建类库和用户控件项目并将它们构建为DLL,并引用它们,我这样做是为了当然,问题是什么?b $ b但部署使用.NET创建的DLL(比如类库或Windows控件库)的方法是什么,需要应用程序使用

如果这是VB6,它将是一个COM对象,所以我必须确保它是regserver-ed。如果它是C ++,它将是一个Windows DLL,所以我必须确保它与应用程序或系统目录位于同一目录中

但是如果它不是Win32怎么办? DLL也不是COM dll - 只是一个.NET。 DLL?

Hell

I find with .NET it is so easy to create class libraries and user control projects and build them as DLLs, and reference them, that I am doing it as a matter of course
But what is the method of deploying a DLL that is created with .NET (say a class library or a windows control library) and needs to be used by an application
If this was VB6, it would be a COM object so I would have to make sure it was regserver-ed. If it was C++, it would be a windows DLL, so I would have to make sure it was in the same directory as the application or the system directory
But what if it''s neither a Win32 DLL nor a COM dll - just a ".NET" DLL?

推荐答案

.NET程序集(dll')可以通过两种方式部署。


与应用程序(exe)一起分发并复制到与应用程序相同的

目录(XCopy部署)或使用加密密钥进行强名称和签名

并放置在全局程序集缓存中使用

gacutil.exe实用程序。如果您的DLL将被许多不同的应用程序使用,后一种方法可能更可取。


-

Bob Powell [MVP]

Visual C#,System.Drawing


图像过渡效果,自动持久配置和

设计时间鼠标操作全部在4月份的Well Formed发行中
http:/ /www.bobpowell.net/wellformed.htm


用GDI + FAQ回答那些GDI +问题
http://www.bobpowell.net/gdiplus_faq.htm


GDI +常见问题RSS提要: http://www.bobpowell.net/faqfeed.xml

Windows窗体提示与技巧RSS: http:// www .bobpowell.net / tipstricks.xml

鲍勃的博客: http://royo.is-a-geek.com/siteFeeder...aspx?FeedId=41

" songie D" <一个******* @ discussions.microsoft.com>在留言中写道

新闻:7D ********************************** @ microsof t.com ...
..NET assemblies (dll''s) can be deployed in two ways.

Either distributed with the application (exe) and copied to the same
directory as the application (XCopy deployment) or strongly named and signed
with a cryptographic key and placed in the Global Assembly Cache using the
gacutil.exe utility. If your DLL is going to be used by a number of
different applications, the latter method is probably preferable.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, automatic persistent configuration and
design time mouse operations all in April''s issue of Well Formed
http://www.bobpowell.net/wellformed.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob''s Blog: http://royo.is-a-geek.com/siteFeeder...aspx?FeedId=41

"songie D" <an*******@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
你好

我发现使用.NET可以很容易地创建类库和用户控件
项目并将它们构建为DLL,并引用它们,我当然是以

的方式做的。但是部署使用.NET创建的DLL(比如一个
类库或Windows控件库)的方法是什么,并且需要由

应用程序使用。如果这是VB6,它将是一个COM对象,所以我必须确保
是regserver-ed。如果它是C ++,它将是一个Windows DLL,所以我会有

来确保它与应用程序或系统

目录位于同一目录中。但是,如果它既不是Win32 DLL也不是COM dll - 只是一个.NET。 DLL?
Hello

I find with .NET it is so easy to create class libraries and user control projects and build them as DLLs, and reference them, that I am doing it as a
matter of course. But what is the method of deploying a DLL that is created with .NET (say a class library or a windows control library) and needs to be used by an
application. If this was VB6, it would be a COM object so I would have to make sure it was regserver-ed. If it was C++, it would be a windows DLL, so I would have
to make sure it was in the same directory as the application or the system
directory. But what if it''s neither a Win32 DLL nor a COM dll - just a ".NET" DLL?



如果我不被微软批准怎么办?我仍然可以用加密密钥签名吗?


如果没有,将把它放在与EXE相同的目录中使它工作吗?
What if I''m not approved by microsoft - can I still ''sign it with a cryptographic key''

If not, will putting it in the same directory as the EXE make it work?


1)是否有一个关于使用gacutil的简单教程。 exe


2)可以使用gacutil.exe与Inno安装程序创建者一起工作


3)安装.NET框架是否意味着你'有gacutil.exe吗?
1) Is there a simple tutorial on using gacutil.exe

2) Can gacutil.exe be made to work with Inno setup creator

3) Does installing the .NET framework mean that you''ve got gacutil.exe?


这篇关于部署.NET DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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