GAC assembly in "Add Reference" dialog box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PJSimon

    GAC assembly in "Add Reference" dialog box

    In regards to this MSDN article:


    .... how do I add the registry key? I got confused on three points:

    1) I do not have a key named ".NETFramew ork" under the "Microsoft" key.
    Should I just create it?

    2) I don't know what to add to the "MyAssembli es" folder.

    3) What should I change "MyAssembli es" to? The name of the dll?


    Can you give me step-by-step instructions?

    THANK YOU!!!
  • Phill  W.

    #2
    Re: GAC assembly in "Add Reference" dialog box


    "PJSimon" <PJSimon@discus sions.microsoft .com> wrote in message
    news:65963D01-D301-4117-A433-32E2AA35A1EE@mi crosoft.com...[color=blue]
    > In regards to this MSDN article:
    > http://support.microsoft.com/default...b;en-us;306149
    >
    > ... how do I add the registry key? I got confused on three points:
    >
    > 1) I do not have a key named ".NETFramew ork" under the "Microsoft"
    > key. Should I just create it?[/color]

    Yes, if only /you/ want to have these assemblies included in the Add
    Reference Dialog.
    If you want /anyone/ on your machine to "inherit" this setting, create
    the key under HKLM, as the article suggests.
    [color=blue]
    > 2) I don't know what to add to the "MyAssembli es" folder.[/color]

    The folder should contain all the assemblies that you want to appear
    in the Add Reference Dialog. I tend to use a lot of shared assemblies,
    so I add them to the Global Assembly Cache after copying them into
    this directory.
    [color=blue]
    > 3) What should I change "MyAssembli es" to? The name of the dll?[/color]

    AFAIK, The registry key can be called anything you like; it's presence
    is enough to stir 'Studio into action:

    (File System)
    C:\ReusableASMs
    Name.Space1.Cla ssname1.dll
    Name.Space2.Cla ssname2.dll

    (Registry)
    [HKLM\SOFTWARE\M icrosoft\.NETFr amework\Assembl yFolders\Shared Stuff]@="C:\\Reusable ASMs"

    HTH,
    Phill W.


    Comment

    Working...