开发者社区> 老朱教授> 正文

[导入]What is the equivalent to regsvr32 in .NET?

简介:
+关注继续查看

Where you once used Regsvr32 on unmanaged COM libraries, you will now use Regasm on managed .NET libraries.

Regsvr32 is the command-line tool that registers .dll files as command components in the registry“

“Regasm.exe, the Assembly Registration tool that comes with the .NET SDK,  reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered.“

If you want to register an assembly programmatically, see the RegistrationServices class and ComRegisterFunctionAttribute

 




本文转自斯克迪亚博客园博客,原文链接:http://www.cnblogs.com/sgsoft/archive/2004/09/22/45402.html,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
三:.net core(.NET 6)给swagger添加文档注释详细步骤
提供swagger文档注释。0、先给api加上标题注释和返回值注释:
26 0
用命令行创建.NET Core
用命令行创建.NET Core
54 0
解决.net framework 3.5 安装报错 0x800F0954问题
解决.net framework 3.5 安装报错 0x800F0954 方法步骤。
6766 0
ASP.NET CORE下运行CMD命令
ASP.NET CORE下运行CMD命令,用以前的ASP.NET 的命令System.Diagnostics.Process.Start("notepad");这样是可以运行出记事本的, 现在公司的C++大神开发了个EXE,需要放在服务器上,然后当访问服务器上的某个网页的时候就执行这个EXE了。
1686 0
NET Core 生成Hello world.exe
.NET Core 生成Hello world.exe 本文描述如何用VS CODE生成控制台程序,然后发布成.exe可执行文件. 材料: Win7系统电脑一台; 安装VS Code; 安装VS Code C# 插件; 安装.
2710 0
+关注
文章
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载