Visual Studio .NET in general generates both .dll and .tlb files when the solution is built for creating an assembly. But if we are using Express edition, the .tlb file is not generated automatically, we need to explicitly create it.
This tip shows how to achieve the above objective by following the steps given below:
But we are still left with the .tlb file.
So for this we need to register the dll in GAC (Global Assembly Cache) by the following command. But prior to that we need to “drag and drop” (No copy/Paste works) the dll file from the source folder (refers to respective application folder where the dll resides) to “C:\WINDOWS\assembly”.Then we can call the command from command prompt as shown below :
|
Note:
1. AssemblyName.dll:-The full path where dll resides needs to be given.
2. Open a command prompt at the path where Regasm is located. For example, the .NET Framework 2.0 default installation path is C:\Windows\Microsoft.NET\Framework\v2.0.50727.
|