title: How to get Current Project Directory path using C#
body: <p>okay, here is the question. I have two projects one is C# Console and other is Class library.
  I am accessing/calling Class library method from the console app.
  There is a folder called Files within the class library project.</p>
  
  <p>I need to get the path of the Class library's files folder but whenever I use </p>
  
  <pre><code>System.IO.Directory.GetCurrentDirectory();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Environment.CurrentDirectory; 
  </code></pre>
  
  <p>it is giving me path of the Console project which I am using to call the method.</p>
  
  <p>Above methods are giving me path like </p>
  
  <pre><code>C:\\ConsolePro\\bin\\Debug
  </code></pre>
  
  <p>but I need the path of Class library project </p>
  
  <pre><code>C:\\ClassLibPro\\bin\\Debug
  </code></pre>
  
  <p>Please advise</p>