在这些日子里,我想从一个新项目开始,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 预览版和开始吧.
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!