Visual Studio 2010 Loves the GAC

One of the more frustrating aspects of working with shared assemblies, was Visual Studio's refusal to allow you to directly reference them via the Browse tab of the Add Reference dialog box.  Sure, you *could* navigate to C:\Windows\Assembly and see a nifty icon which represents the library you wish to reference, but no matter how hard you try, VS would not allow you to select it for use in your application.

This required developers to have two stacks of libraries, one for referencing and one for runtime use (in other words, in the GAC). 

To make matters more annoying, other IDEs, such as SharpDevelop (www.sharpdevlop.com) do allow you to navigate to the GAC, and reference a library as expected. 

Thankfully, Visual Studio 2010 has changed for the better.  When you use the Browse tab of the Add Reference dialog box, you can indeed navigate to C:\Windows\Assembly and see the underlying sub-directory structure!  GAC, GAC_32, GAC_MISL and GAC_64 (if you are running the correct version of Windows) are all realized as "normal" directories, rather than fancy icons which can't be selected. 

Do remember that under the GAC directory, you will need to drill down to the unique (auto created at the time of installation) folder, which always follows the following naming convention:

Major.Minor.Build.Revision__publicKeyToken

Some times the little things DO mean a lot ;-)


Posted by: Andrew Troelsen
Posted on: 4/22/2010 at 3:14 PM
Tags: ,
Categories: .NET
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Subscribe to this BlogRSS comment feed

Add comment




biuquote
  • Comment
  • Preview
Loading


Contact Us 651-994-8558 1-800-866-9884
Home | Training | Curriculum | Course Finder | Schedule | Enroll | Twin Cities Java User Group | Consulting | Foundation | Jobs | About Us | Our Story | Press Room | Instructors | President | Map & Directions | Sitemap

Java Training | JSF / Struts / Spring / Hibernate Training | Java Power Tools Training | .NET 4.0 & Visual Studio 2010 Training | .NET 3.5 and Visual Studio 2008 Training | .NET 2.0 and Visual Studio 2003 Training | Prism / MVVM / MEF Training | Microsoft Web Development Training | Cloud Computing Training | Ajax / Web Services / XML Training | Groovy and Grails Training | SQL Server 2008 Training | SQL Server 2005 Training | Mobile Development Training | SharePoint 2010 Training | SharePoint 2007 Training | Agile, Process, Analysis & Design Training | Arch/Design Patterns Training | Microsoft Official Curriculum Training | Web Development Training | Ruby Training | Rational Application Developer (RAD) Training | WebSphere Application Server Training | WebSphere Portal Training | WebLogic Training | Boot Camp Training | Project Management Training | C++ Training | Metro / WinRT / Windows 8 Development Training | Retired

Intertech delivers training on-site and virtually serving cities including Phoenix, AZ | San Francisco, CA | Los Angeles, CA | San Diego, CA | San Jose, CA | Washington, DC | Chicago, IL | Orlando, FL | Boston, MA | Duluth, MN | Minneapolis St. Paul, MN | Rochester, MN | Raleigh-Durham, NC | New York, NY | Philadelphia, PA | Austin, TX | Dallas, TX | Houston, TX | Seattle, WA.