最终版本是否支持具有多个项目的 MVC2 区域?
我一直在遵循本指南来获取具有多个项目设置的区域: http://msdn.microsoft.com/en-us /library/ee307987(VS.100).aspx
我在修改 .csproj 文件以启用 AfterBuild 配置的步骤中遇到了困难。我通过谷歌搜索找到了 Steve Mosely 的这篇文章: http://avingtonsolutions.com/blog/post/2010/04/03/JQuery-AspNet-MVC-2-Multi-Project-Areas-and-Other-News-Minutia.aspx
到目前为止,我唯一遇到的问题是 我已经设置了我的解决方案 合并多个项目领域 MVC 2 预览版支持 区域的发布。然而,当 RTM出来了就不再是了 支持。我找啊找 解决我的困境,但唯一的办法 我能找到的东西是由 乔纳森基本上也有同样的经历 我的经历,以及参考 留言板上的晦涩信息 说(似乎是一些 ASP 团队的一位)说它不是 支持。到目前为止,我还没有找到 任何更正式的帖子或文章说 事实并非如此。
这是真的吗?此功能是否已从 2010 MVC2 中删除?我一直无法找到明确的答案。
I had been following this guide to get areas with multiple projects setup:
http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx
I was stumbling on the step where you modify the .csproj files to enable the AfterBuild configuration. My googling led me to this post from Steve Mosely:
http://avingtonsolutions.com/blog/post/2010/04/03/JQuery-AspNet-MVC-2-Multi-Project-Areas-and-Other-News-Minutia.aspx
So far the only hang up I had was that
I had set up my solution to
incorporate multi project areas which
was supported in the MVC 2 preview
releases of Areas. However, when the
RTM came out it was no longer
supported. I searched and searched for
solutions to my dilemma, but the only
thing I could find was post by
Jonathon who basically had the same
experience I had, and a reference to
an obscure message on a message board
saying (by what appeared to be some
one from the ASP Team) that it was not
supported. To date, I haven't found
any more formal post or article saying
that was not the case.
Is this true? Did this feature get removed from 2010 MVC2? I haven't been able to find a definite answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它们在预览版 2 中被删除。唯一支持的区域使用是单个项目区域。
They were removed in Preview 2. The only supported use of areas are single-project areas.
您可以参考 MVC2 和 MVC3 的“Futures”下载中的构建程序集。当然,单个项目中的 RC 支持多个区域。我完全不同意 Levi 的观点,即合并多个项目没有意义。当您开发大型应用程序并希望将功能分解为“模块”或“迷你应用程序”时,这是完全有意义的。简单地研究“面向对象编程”、“组合”、“模块化”、“依赖注入”、“控制反转”、“方面”等主题以及“MEF”、“Unity”、“Prism”、“复合应用程序”等相关框架框架”、SmartClient 应用程序块等(更不用说所有令人难以置信的非 MS 框架,但提及一个框架就意味着不提及另一个框架,人们对此类事情非常敏感......)。
注意:1) 记录的 MSBuild 任务不包含在发布的项目文件中,因此您必须查找并添加它们,2) futures 程序集没有强命名,因此您需要更改 MSBuild 任务以使用“ “AssemblyName”路径中的 PublicKeyToken=null”。
You can reference the Build assembly in the "Futures" download for both MVC2 and MVC3. Of course, multiple Areas are supported in the RC within a single project. I completely disagree with Levi that it didn't make sense to merge multiple projects. It makes total sense when you develop large applications and desire to break up the functionality into "modules", or "mini applications". Simply research topics like "OO programming", "composition", "modular", "dependency injection", "inversion of control", "aspects" and related frameworks like "MEF", "Unity", "Prism", "Composite Application Framework", SmartClient application block, etc. (not to mention all of the incredible non-MS frameworks, but mentioning one means not mentioning another and people get all touchy about things like that...).
Notes: 1) The documented MSBuild tasks are not included in the project files in the release, so you must find and add them and 2) The futures assemblies are not strongly named, so you will want to change the MSBuild tasks to use the "PublicKeyToken=null" in the "AssemblyName" paths.