如何部署一个COMCOM

由网友(社会太多追风狗@)分享简介:我刚刚完成我的建设新的COM项目(C#,.NET 3.5)。该项目将通过一个VFP应用程序调用。它在我的开发机器伟大的工作,但现在我需要知道如何在用户的计算机上部署它。点击一旦不适用于此类项目,所以我想我只能和手动分配的DLL。I just finished building my new COM project (...

我刚刚完成我的建设新的COM项目(C#,.NET 3.5)。该项目将通过一个VFP应用程序调用。它在我的开发机器伟大的工作,但现在我需要知道如何在用户的计算机上部署它。点击一旦不适用于此类项目,所以我想我只能和手动分配的DLL。

I just finished building my new COM project (C#, .NET 3.5). This project will be called by a VFP application. It's working great on my development machine, but now I need to know how to deploy it on the user's machine. Click Once isn't available for this kind of project, so I guess I'm stuck with manually distributing the DLL.

所以,在这里我应该把DLL,我如何注册呢?

So, where should I put the DLL and how do I register it?

顺便说一句,3.5的框架已经安装在用户的计算机上。

BTW, the 3.5 framework is already installed on the user's machine.

TIA

推荐答案

我真的从来没有使用过的RegSvr32与.NET程序集,而我用的是regasm与/ codeBase的选项:

I've really never used RegSvr32 with .Net assemblies, rather I use the regasm with the /codebase option:


    C:WindowsMicrosoft.NETFrameworkv2.0.50727regasm.exe /codebase mydll.dll

您还可以使用/ TLB选项导出类型库,并将其注册。

You can also use the /tlb option to export the type library and register it.

当然,最简单的方法,只需创建vstudio一个安装程序,它会为你做这个。

Of course the easiest way, just create an installer with vstudio and it will do this for you.

阅读全文

相关推荐

最新文章