Home All Groups Group Topic Archive Search About

GAC assembly in "Add Reference" dialog box

Author
20 Feb 2006 4:35 PM
PJSimon
In regards to this MSDN article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;306149

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

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

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

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


Can you give me step-by-step instructions? 

THANK YOU!!!

Author
21 Feb 2006 2:32 PM
Phill W.
"PJSimon" <PJSi***@discussions.microsoft.com> wrote in message
news:65963D01-D301-4117-A433-32E2AA35A1EE@microsoft.com...
> In regards to this MSDN article:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;306149
>
> ... how do I add the registry key?  I got confused on three points:
>
> 1) I do not have a key named ".NETFramework" under the "Microsoft"
> key.  Should I just create it?

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.

> 2) I don't know what to add to the "MyAssemblies" folder.

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.

> 3) What should I change "MyAssemblies" to?  The name of the dll?

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.Classname1.dll
   Name.Space2.Classname2.dll

(Registry)
[HKLM\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\SharedStuff]@="C:\\ReusableASMs"

HTH,
    Phill  W.