ASP.NET MVC 2区和AfterBuildCompiler [英] ASP.NET MVC 2 Areas and AfterBuildCompiler
问题描述
我只是想出去动物园在ASP.NET MVC 2,我已经打了一个小问题。
我添加适当的行到我的项目文件:
<目标名称=AfterBuildDependsOnTargets =AfterBuildCompiler>
<&的PropertyGroup GT;
< AreasManifestDir> $(PROJECTDIR)\\ .. \\舱单< / AreasManifestDir>
< /&的PropertyGroup GT;
< CreateAreaManifest AREANAME =$(的AssemblyName)AreaType =孩子AreaPath =$(PROJECTDIR)ManifestPath =$(AreasManifestDir)ContentFiles =@(内容)/>
< /目标>
不过,我的问题是,我得到了以下错误:
目标AfterBuildCompiler并不在项目存在 P>
我想我失去了一些东西很明显 - 任何建议
当我得到这个错误是因为Microsoft.Web.Mvc.Build.dll是用C丢失:\\ Program Files文件\\微软ASP.NET \\ ASP .NET MVC 2 \\组件
不知道这是否是唯一的问题,但。
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?
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.
这篇关于ASP.NET MVC 2区和AfterBuildCompiler的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!