开发者

ASP.NET MVC 2 Areas and AfterBuildCompiler

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)" Manife开发者_如何学PythonstPath="$(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?


When i got that error it was because the Microsoft.Web.Mvc.Build.dll was missing in C:\Program Files\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies

Don't know if it's the only problem though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜