com reference in released app

Status
Niet open voor verdere reacties.

jordumus

Gebruiker
Lid geworden
20 okt 2008
Berichten
66
ik heb dit gevonden, maar snap er niets van... Kan iemand mij uitleggen wat ik moet doen?


If a Visual Basic .NET project references the COM Interop assembly, you must manually generate the COM Interop assembly with Tlbimp.exe, as follows:

1. In Microsoft Visual Studio .NET, open the properties of the Visual Basic project in which you want to reference the COM component.
2. Delete the existing reference to your COM component.
3. Run Tlbimp.exe from a command prompt on your COM DLL to generate an Interop assembly that has a strong name, as follows:
tlbimp.exe MyCOMDLL.dll /keyfile:KeyFile.snk /out:MyCOMInterop.dll
4. Add a reference to the output file from Tlbimp.exe to your Visual Basic .NET project.
5. Rebuild the project.


If the assembly is delay signed instead of fully signed, the wrapper assembly must be delay signed. To create an assembly that is delay signed, generate the wrapper by using the TlbImp.exe tool. To do this, follow the previous steps. If you use the "Microsoft Visual Basic .NET" steps, modify the command line that is provided in step 3 as follows:
tlbimp.exe MyCOMDLL.dll /delaysign /publickey:PublicKeyFile.snk /out:MyCOMInterop.dll
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan