title: How can I use Server.MapPath inside class library project
body: <p>I have a web application thet has a number of class library projects. Some example code below.</p>
  
  <pre><code>public static class LenderBL
  {
      static string LenderXml { get { return "MyPathHere"; } }
  
      public static LenderColl GetLenders()
      {
          var serializer = new XmlSerializer(typeof(LenderColl));
  
          using (XmlReader reader = XmlReader.Create(LenderXml))
          {
              return (LenderColl)serializer.Deserialize(reader);
          }
      }
  }
  </code></pre>
  
  <p>I would normally use Server.MapPath to get the path for the property LenderXml, but when I use it in a class library is returns the path of the parent solution, not that of the class library project.</p>
  
  <p>Is there a way of getting the path for the class libary project itself?</p>
  
  <p>Thanks in advance.</p>