title: C# Get path of class library
body: <p>I have a class library that uses some xml files found in its own directory.</p>
  
  <p>When referencing this library from another project, how do I ensure the library is working from it's own directory?</p>
  
  <p>I tried Assembly.GetExecutingAssembly().Location but that still returns the path of the startup project.</p>