title: Find MSBuildProjectDirectory Parent Directory
body: <p>MSBuild 3.5</p>
  
  <p>I have the following project structure:</p>
  
  <pre><code>trunk/MainSolution.sln
  trunk/Build/MyBuild.Proj
  trunk/Library/...
  trunk/etc...
  </code></pre>
  
  <p>So far, I've been using the following property to find out the project root folder:</p>
  
  <pre><code>&lt;RootFolder&gt;$(MSBuildProjectDirectory)\..\&lt;/RootFolder&gt;
  </code></pre>
  
  <p>Everything was working great, until I tried using a copy task that relied on this path. It is not resolving correctly. I basically end up getting something like this which is not valid:</p>
  
  <pre><code>C:\Projects\MyProject\Trunk\Build\..\CodeAnalysis\myfile.xml
  </code></pre>
  
  <p>So basically, I need to get the full path for (MSBuildProjectDirectory)'s Parent.</p>