将MVC5项目升级到MVC6 [英] Upgrade MVC5 project to MVC6

查看:17
本文介绍了将MVC5项目升级到MVC6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近有一次我想开始一个新项目,MVC 看起来真的很有趣,但我想知道是否有可能将 MVC 5 项目升级到 MVC 6 项目,该项目将于今年晚些时候发布?

In one of these days I would like to start with a new project and MVC seems really interesting, but I was wondering if it is possible to upgrade a MVC 5 project to a MVC 6 project, which will be released later this year?

还是因为很多东西都变了,还得从头再来?还是建议我等到 MVC 6 发布?

Or do you have to start all over again since a lot of things have been changed? Or do you recommend me to wait until MVC 6 is released?

推荐答案

这不会是直接的升级路径,因为进行了许多重大更改.不过,您现在可以开始使用 MVC 6,无需等待.您可以下载 Visual Studio 2015 Preview 和开始吧.

It won't be a direct upgrade path, as a lot of breaking changes were made. You can start playing with MVC 6 now though, no need to wait. You can download the Visual Studio 2015 Preview and get started.

您的一些代码将被移走,但您需要仔细检查并验证其中的每一部分并修复大量错误.从头开始使用 MVC 6 可能更好(微软在我看过的视频的一些问答中推荐了这个).

Some of your code will move over, but you'd need to go through and verify every bit of it and fix a lot of errors. It's probably better to start from the ground up with MVC 6 (Microsoft has recommended this in some Q&A on videos I've seen).

Visual Studio 2015 现已正式发布,ASP.NET 5 和 MVC 6 处于 RC1 状态.您可以使用 MVC 6 创建一个新的 ASP.NET 5 项目,然后只需复制所有源文件.之后,一一解决错误,直到解决所有错误.

Visual Studio 2015 is officially out now, and ASP.NET 5 and MVC 6 are in RC1 status. You can create a new ASP.NET 5 project with MVC 6, then just copy over all the source files. After that, work though the errors one by one until you've solved them all.

这篇关于将MVC5项目升级到MVC6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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