title: How to get the current project directory or the bin directory and move a few level up?
body: <p>I have an ASP.Net MVC app, and i have some xsl files inside of the Content directory.
  I've try a few methods to get directory dynamically buy keep on coming short.</p>
  
  <p>So how do i get the directory to point to the Content/xsl folder?</p>
  
  <p>the closest that i came to was with this:</p>
  
  <pre><code>this.GetType().Assembly.CodeBase 
  </code></pre>
  
  <p>which only returns the project DLL, but i can't figure out how to move up a few levels from there or what .net library to use to navigate around the path.</p>
  
  <p>there's no ../.. :(</p>
  
  <p>Basically i want to navigate to the Content/xsl folder which is at the same level of the Bin directory.</p>