注册COM类和接口 [英] Registraton of the COM Class and Interfaces

查看:88
本文介绍了注册COM类和接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试注册COM类和接口,参考
here

I'm trying making registration of the COM Class and Interfaces referring here.

我的问题是关于AssemblyInfo.cs中的指向密钥对文件。

My question is regarding pointing key pair file in the AssemblyInfo.cs.

在AssemblyInfo.cs(步骤13)中的点密钥对文件之后,在使用gacutil将程序集添加到GAC之前(步骤14),我不应该编译项目吗? (关于Step13和Step14之间的编译没有评论)

After point key pair file in the AssemblyInfo.cs(Step13) and before add assembly to the GAC using gacutil(Step14), Shouldn't I compile project? (There's no comment regarding compile between Step13 and Step14)

有人可以给我一些建议吗?

Can anybody give me some advice regarding this?

提前致谢。

推荐答案

你提到的文章太旧了。向.NET公开.NET对象不需要强命名或GAC。请参阅
中的当前说明
MSDN
。如果你需要强烈命名一个程序集,而不是COM的要求,你只会担心GAC。
The article you mention is way too old. Exposing a .NET object to COM doesn't require strongly naming or the GAC. Refer to the current instructions found in MSDN. You would only worry about the GAC if you need to strongly name an assembly, not a requirement of COM.


这篇关于注册COM类和接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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