简体   繁体   English

AfterBuildCompiler(msbuild)目标在哪里定义?

[英]Where is AfterBuildCompiler (msbuild) target defined?

I'm trying to get multi-project ASP.NET MVC areas (like described here ) working in MVC 3 on .NET 4 (since it's not officially supported since MVC 2 Beta). 我试图让多项目ASP.NET MVC的区域(如描述这里 )在.NET 4 MVC 3个工作(因为它不是正式因为MVC 2 Beta版支持)。 So i've found Microsoft.Web.Mvc.Build.dll from MVC 2 Preview and modified the script so it can use the assembly directly (it's not strong-named): 因此,我从MVC 2 Preview中找到了Microsoft.Web.Mvc.Build.dll并修改了脚本,以便它可以直接使用程序集(名称不强):

<UsingTask TaskName="Microsoft.Web.Mvc.Build.CreateAreaManifest" AssemblyFile="..\..\Microsoft.Web.Mvc.Build.dll" />
<UsingTask TaskName="Microsoft.Web.Mvc.Build.CopyAreaManifests" AssemblyFile="..\..\Microsoft.Web.Mvc.Build.dll" />

But i get "error MSB4057: The target "AfterBuildCompile" does not exist in the project.". 但是我收到“错误MSB4057:项目中不存在目标“ AfterBuildCompile”。 Where is this target defined? 这个目标在哪里定义?

Found a lot of related posts but none working. 找到了很多相关的职位,但没有工作。 Should i abandon the hope to have multi-project areas or try MVCContrib portable areas as alternative (looks not what i need at first glance)? 我应该放弃拥有多个项目区域的希望还是尝试使用MVCContrib便携式区域作为替代选择(乍看之下我并不需要)?

您可以检查以下文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM