将 MVC5 项目升级到 MVC6

Upgrade MVC5 project to MVC6(将 MVC5 项目升级到 MVC6)
本文介绍了将 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 预览版和开始吧.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)