[导入]What is the equivalent to regsvr32 in .NET?
2004-09-22 09:39
609 查看
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
[align=bottom] [/align]
文章来源:http://blogs.msdn.com/csharpfaq/archive/2004/08/02/206158.aspx
“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
[align=bottom] [/align]
文章来源:http://blogs.msdn.com/csharpfaq/archive/2004/08/02/206158.aspx
相关文章推荐
- To see what is in the MAT-file prior to loading it, use whos -file
- What is the best way to paginate results in SQL Server
- What is the difference between the ways to implement inheritance in javascript.
- It is said that wars in the 21st century will be fought over water. Do you agree? What do you think can be done now to alleviate
- .NET错误The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework
- What is the simplest way to distribute a .NET COM server to any platform?
- It is not possible to run two different versions of ASP.NET in the same IIS process
- Issue 12(Anyone can make things bigger and more complex. What require more effort and courage is to move in the opposite directi
- Disaster Recovery: What to do when the SA account password is lost in SQL Server 2005
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- What is the best way to handle Invalid CSRF token found in the request when session times out in Spring security
- It is not possible to run two different versions of ASP.NET in the same IIS process:IIS
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- [quote] How to determine what target is given in Makefile from the make command-line?
- What is the Best Programming Language to Learn in 2014?
- What is the best way to implement a heartbeat in C++ to check for socket connectivity?
- What is new in the .net framework 3.5?
- Q:Is there any way to define what the "Open Resource" dialog in Eclipse should show?
- 托福写作5-what is the most important characteristic that a person can have to be successful in life
- what is the difference of select single and select up to one row in abap