Kevin McNeish Blog

All things iOS, Kindle and .NET

Recent Posts

Tags

News

  • First books in my new book series, "iOS App Development for Non-Programmers" are now available! iBookStore: http://itunes.apple.com/us/book/book-1-diving-in-ios-app-development/id558788074?mt=11 Amazon: http://www.amazon.com/dp/B0097N8XBE Amazon: http://www.amazon.com/dp/B0099RQGMQ

Community

Email Notifications

Archives

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:

AssemblyFoldersEx
   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
www.oakleafsd.com
   

 

Leave a Comment

(required) 

(required) 

(optional)
 

(required) 

If you can't read this number refresh your screen
Enter the numbers above: