• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1071
  • Last Modified:

Get a specific vertion of a dll from the GAC

Hi,
I'm using C# and VS.net 2005 && 2008.

If I instantiate my dll's through reflection, how can I get a specific dll from the GAC based on its name & version?


Thanks,
Alex
0
Alexandre Simões
Asked:
Alexandre Simões
1 Solution
 
Expert1701Commented:
You also need to specify the PublicKeyToken to load the assembly from the GAC:

  System.Reflection.Assembly.Load("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now