title: ASP.NET MVC 2 Areas and AfterBuildCompiler
body: <p>I am just trying out Areas in ASP.NET MVC 2 and I've hit a small issue.</p>
  
  <p>I've added the appropriate lines to my project file:</p>
  
  <pre><code> &lt;Target Name="AfterBuild" DependsOnTargets="AfterBuildCompiler"&gt;
      &lt;PropertyGroup&gt;
        &lt;AreasManifestDir&gt;$(ProjectDir)\..\Manifests&lt;/AreasManifestDir&gt;
      &lt;/PropertyGroup&gt;
      &lt;CreateAreaManifest AreaName="$(AssemblyName)" AreaType="Child" AreaPath="$(ProjectDir)" ManifestPath="$(AreasManifestDir)" ContentFiles="@(Content)" /&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>But the problem I have is that I get the following error:</p>
  
  <p>The target "AfterBuildCompiler" does not exist in the project.</p>
  
  <p>I think I'm missing something obvious - any suggestions?</p>