简体   繁体   English

将MVC5项目升级到MVC6

[英]Upgrade MVC5 project to MVC6

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似乎真的很有趣,但我想知道是否有可能将MVC 5项目升级到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发布?

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. 你现在可以开始玩MVC 6,无需等待。 You can download the Visual Studio 2015 Preview and get started. 您可以下载Visual Studio 2015预览版并开始使用。

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). 最好从MVC 6开始(微软已经在我看过的视频的一些问答中推荐了这个)。

Edit 11/28/2015 编辑2015年11月28日

Visual Studio 2015 is officially out now, and ASP.NET 5 and MVC 6 are in RC1 status. Visual Studio 2015现已正式发布,ASP.NET 5和MVC 6处于RC1状态。 You can create a new ASP.NET 5 project with MVC 6, then just copy over all the source files. 您可以使用MVC 6创建一个新的ASP.NET 5项目,然后只复制所有源文件。 After that, work though the errors one by one until you've solved them all. 在那之后,逐个完成错误,直到你解决了所有错误。

Migrating From ASP.NET MVC 5 to Core MVC 从ASP.NET MVC 5迁移到Core MVC

This article shows how to get started migrating an ASP.NET MVC project to ASP.NET Core MVC. 本文介绍如何开始将ASP.NET MVC项目迁移到ASP.NET Core MVC。 In the process, it highlights many of the things that have changed from ASP.NET MVC. 在此过程中,它突出了许多从ASP.NET MVC发生的变化。 Migrating from ASP.NET MVC is a multiple step process and this article covers the initial setup, basic controllers and views, static content, and client-side dependencies. 从ASP.NET MVC迁移是一个多步骤的过程,本文介绍了初始设置,基本控制器和视图,静态内容和客户端依赖性。 Additional articles cover migrating configuration and identity code found in many ASP.NET MVC projects. 其他文章介绍了许多ASP.NET MVC项目中的迁移配置和身份代码。

Here is the URL: Migrating From ASP.NET MVC 5 to Core MVC 这是URL: 从ASP.NET MVC 5迁移到Core MVC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM