降级/转换MVC 4 MVC 3 [英] Downgrade/convert mvc 4 to mvc 3

查看:90
本文介绍了降级/转换MVC 4 MVC 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个相当奇怪的问题,请不要火焰我:)

I know this is a rather odd question, please don't flame me :)

我有一个具体的需要降级当前Asp.Net的mvc 4(.NET框架4.5)的应用程序Asp.Net MVC 3(.NET框架4.0),因为我们共同的托管服务提供商不支持.NET 4.0(我知道它的疯狂考虑它一直在零售业自12 Aprli 2010年第一个测试版在2009年5月就出来了,但它不是后点)。

I have a concrete need to "downgrade" a current Asp.Net Mvc 4 (net framework 4.5) application to Asp.Net Mvc 3 (net framework 4.0) because our shared hosting provider does not support .Net 4 (I know it's crazy considering it's been in retail since 12 Aprli 2010 and first beta came out in May 2009 but it's not the point of the post).

是否有任何工具或指南,或任何可能在这个过程中帮助吗?我越来越有点失落,因为我很多升级
应用
但我从未有过降级的。

Is there any tool, or guide, or anything that could help in the process? I'm getting a bit lost because I upgraded many applications but I never had to downgrade one.

我用一些像begincollectionitem特征可能不是直接向MVC3兼容

I have use some of the features like begincollectionitem which may not be direct compatible to mvc3

推荐答案

我怀疑你会发现一个官方指南或工具,你必须做手工。就个人而言,我会做到以下几点:

I doubt you'll find an official guide or tool, you'll have to do it manually. Personally, I would do the following:


  • 启动一个新的MVC 3项目(MVC3是通过提供的NuGet)

  • 从一个拷贝文件到其他

  • 修正任何编译问题

  • 使用发布网站功能某处在本地发布(这将有望发现在你的剃须刀的看法编译问题不拿到项目建设过程中发现的)

  • 全面测试网站!

对不起,这不是更有帮助,但我不认为人们普遍设计了降级过程。

Sorry it's not more helpful, but I don't think people generally design for the downgrade process.

这篇关于降级/转换MVC 4 MVC 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆