-3

I need to get a full path to the dll of an assembly that is NOT the executing assembly. For instance, can this be done by assembly name?

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
eYe
  • 1,695
  • 2
  • 29
  • 54

1 Answers1

2
 var location = Path.GetDirectoryName(typeof(YourType).Assembly.Location);

I'm sure there are a bunch of other ways to do this if you google around.

robaudas
  • 1,538
  • 1
  • 9
  • 12