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