GAC assembly in "Add Reference" dialog box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!!!
 
PJSimon said:
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.
 
Back
Top