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?
Asked
Active
Viewed 95 times
-3
Michael Petch
- 43,801
- 8
- 98
- 174
eYe
- 1,615
- 2
- 27
- 50
-
1https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getassembly(v=vs.110).aspx – Marco Fatica Nov 05 '15 at 20:03
1 Answers
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