-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
  • 43,801
  • 8
  • 98
  • 174
eYe
  • 1,615
  • 2
  • 27
  • 50

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,443
  • 1
  • 8
  • 12