title: Environment.CurrentDirectory renders Wrong Path
body: <p>I need to get to a certain file in my ASP.NET MVC project. Have two folders in my same Project, let's call them Main and Reference.</p>
  
  <p>From my Main, I am calling a class from my Reference.csproj file. From there, I need to get to my TargetFile, which also lives in the Reference folder.</p>
  
  <p>When I use <code>AppDomain.CurrentDomain.BaseDirectory</code> i get <code>C:\Project\Main</code>, when I want <code>C:\Project\Reference</code>.</p>
  
  <p>So I thought I could use <code>Environment.CurrentDirectory</code>, which would hopefully point me to the Reference folder instead of the Main, but unfortunately it outputs <code>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE</code>. I have also tried <code>Directory.GetCurrentDirectory()</code>, but I get the same result.</p>
  
  <p>What I need is for <code>Environment.CurrentDirectory</code> to give me <code>C:\Project\Reference</code>. I think it should give me the Reference folder instead of the Main folder because it is being called from inside Reference, but right now it's not even going near my Project folder.</p>
  
  <p>Is there a way I can do that without defining my directory elsewhere? I really want to do this without hardcoding my file path into my project.</p>