none
ClassLibrary RRS feed

  • Question

  • Hi everyone.

    I have a question related to .net ClassLibrary. i have create a ClassLibrary add provide a strong name like that

    [assembly: AssemblyKeyFile("TLS.snk")]

    now i am just buld the ClassLibrary build is succeeded. I installed this ClassLibrary li GAC through this command

    C:>gacutil -i "C:\Test.dll" 

    but this ClassLibrary not showing in Add Reference dialog(.net or com tab).

    How to show it.

    Thanks.

    Wednesday, February 20, 2013 9:07 AM

Answers

  • Hi Amersh,

    Welcome to the MSND Forum.

    Please try this KB: http://support.microsoft.com/kb/306149  

    To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\<var>MyAssemblies</var>]@="C:\\<var>MyAssemblies</var>"
    where <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">MyAssemblies</var> is the name of the folder in which the assemblies reside.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Amersh Singh Friday, February 22, 2013 7:37 PM
    Thursday, February 21, 2013 8:50 PM
    Moderator

All replies

  • Check for correct AssemblyName in the Add Reference dialog.

    In general .Net Framework Version 1.1,2.0,3.5 are installed in C:\Windows\Assembly

    .Net Framework Version 4.0 is installed in C:\WINDOWS\Microsoft.NET\assembly

    Add Reference dialog not only lists the assemblies from the GAC but from other locations too.

    Refer the link for more details to make your assembly load in Add Reference Dialog

    http://msdn.microsoft.com/en-us/library/wkze6zky.aspx


    It all Happenz Sendil

    Wednesday, February 20, 2013 10:56 AM
  • Hi,
    you can go to Microsoft Support documentation : http://support.microsoft.com/kb/302340

    One good question is equivalent to ten best answers.

    Wednesday, February 20, 2013 11:10 AM
  • First, "Add Reference" dialog .net page is not GAC, it is just a preset list of assemblies.

    Second, installing into GAC doesn't make assembly registered for COM interop, so it wouldn't show on COM page.

    Just add it as a path at design time, and it would be taken from GAC at runtime.

    Wednesday, February 20, 2013 9:44 PM
  • Hi Amersh,

    Welcome to the MSND Forum.

    Please try this KB: http://support.microsoft.com/kb/306149  

    To display your assembly in the Add Reference dialog box, you can add a registry key, such as the following, which points to the location of the assembly
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\<var>MyAssemblies</var>]@="C:\\<var>MyAssemblies</var>"
    where <var style="color:#333333;font-family:'Segoe UI', Arial, Verdana, Tahoma, sans-serif;font-size:13px;line-height:normal;">MyAssemblies</var> is the name of the folder in which the assemblies reside.

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Amersh Singh Friday, February 22, 2013 7:37 PM
    Thursday, February 21, 2013 8:50 PM
    Moderator