Getting your Silverlight Assemblies to Appear in the VS 2010 Add References Dialog

If you are creating custom Silverlight assemblies you want to reference from multiple projects, it’s great for those assemblies to appear in Visual Studio’s Add References dialog. It’s easy to do this, although I didn’t see documentation anywhere on how to do it.

All you need to do is add a key below the following Windows Registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Silverlight\v4.0\AssemblyFoldersEx

or for 64-bit Windows machines:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Silverlight\v4.0\AssemblyFoldersEx

Simply add a new key with a name that is descriptive of your assembly, then set the default value of the key to the folder that contains your .NET assembly.

For example, if your assembly is located in the folder C:\Acme\Silverlight controls, you could add a new registry key under the node listed above:

Acme Silverlight Controls – (Default)    REG_SZ   C:\Acme\Silverlight Controls

Best Regards,
Kevin McNeish
Eight-Time .NET MVP Recipient
INETA Speaker
Chief Architect, MM .NET Application Framework

Leave a Reply

Your email address will not be published. Required fields are marked *