title: path to file in class library
body: <p>I have a class libary project (NotificationTemplate) which return content of file:</p>
  
  <pre><code>public static class Template
  {
      public static string NotificatioEmail
      {
          get { return File.ReadAllText("Templates\\NotificatioEmail.cshtml"); }
      }
  }
  </code></pre>
  
  <p>In this project is located folder <code>Templates</code> with <code>NotificatioEmail.cshtml</code> file.  </p>
  
  <p>Also, I have two application: console app and ASP.NET MVC app. The file returned fine in the console app, but in the MVC I get error <code>file not found</code>. How to write universally?<br>
  I tryed this:</p>
  
  <pre><code>Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "Templates",
               "NotificatioEmail.cshtml")
  </code></pre>
  
  <p>but <code>BaseDirectory</code> don't include <code>bin</code> folder.</p>