简体   繁体   English

为VB6应用要使用的.NET程序集编写COM Interop程序集

[英]Writing a COM Interop Assembly for a .NET assembly to be consumed by a VB6 app

I'm trying to create a COM Interop assembly (myComInterop.dll) between my vb6 app and a .net assembly. 我正在尝试在vb6应用程序和.net程序集之间创建COM Interop程序集(myComInterop.dll)。 I'm also trying to make it so that it can be "registration free" ( see here for explanation ). 我也在尝试使其成为“免注册”( 请参阅此处以获取解释 )。 The freedom from registration requires that I create a MyVb6App.exe.manifest file, and also that I use a strong name to sign myComInterop.dll. 要获得注册自由,就需要创建MyVb6App.exe.manifest文件,并使用强名来签名myComInterop.dll。 However, the references in myComInterop.dll require the dependent assemblies to be signed with a strong name, as well. 但是,myComInterop.dll中的引用也要求相关程序集也要使用强名称进行签名。 The problem is that some of the dependent assemblies are 3rd party libraries that we can't rebuild them as delay signed or sign them ourselves. 问题在于某些依赖程序集是第三方库,我们无法将其重建为延迟签名或自己签名。

Is there a way to get around this requirement that the dependent dlls be signed? 有没有一种方法可以解决对依赖的dll进行签名的要求?

What makes you think it needs be strong named? 是什么使您认为它需要被强命名? This is not a requirement for reg-free COM, nor does the example given in the blog post use a strong-named assembly. 这不是无注册COM的要求,博客文章中给出的示例也不使用强名称程序集。

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

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