none
To identify usage of Regasm.exe in .Net Dll/assembly also , to know any assembly/.NET Dll is installed in GAC path RRS feed

  • Question

  • Hi,

    I have  couple of .NET Dll's(assembly) with/without COM Interfaces,

    1.   Is there a way/method to identify if a dll/assembly (.Net Dll) has a COM interface ?   This is akin to searching for DllRegisterServer() API function in Unmanaged source Code (ATL-COM world)in VS IDE.

    I need to verify if the above .Net Dll/assembly with COM interface exists we need to perform the registration for the same using "Regasm.exe" in managed world Or given source code for the same.

    2. Similarly,  without having access to Source Code could we know, an Assembly/Dll in Managed Code(.NET) has been installed in GAC path (C:\Windows\Assembly\...)

    Any help in resolving the above would be appreciable,

    I am using Windows 7 O/S, VS 2008 IDE

    Regards,

    VishaK_91

     


    Vishal_K89

    Thursday, May 9, 2013 7:11 AM

Answers

  • Hi

    one way is using Reflection to identify interface implementing by class is of type

    [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]

    .

    2: command to know dll in GAC or nt

    gacutil /l "ComInterface.dll"

    Regards

    Mohit Gupta

    • Marked as answer by VishaK_90 Friday, May 10, 2013 4:42 AM
    Thursday, May 9, 2013 8:47 AM