升级项目MVC 5 [英] Upgrading a project to MVC 5

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

问题描述

我一直在寻找一个解决方案来升级现有的MVC 4应用程序,我必须使用新的MVC 5二进制文件。我不能在任何地方找到一个解决方案。

I have been looking for a solution to upgrade a current MVC 4 app that i have to use the new MVC 5 binaries. I cannot find a solution anywhere.

任何人有什么想法?

推荐答案

的Visual Studio 2013将自动只需通过允许的NuGet包管理器运行更新升级项目。

Visual Studio 2013 will automatically upgrade a project simply by allowing the Nuget Package Manager to run Updates.

步骤:

在Visual Studio 2013中,打开该项目,并在项目名称上点击鼠标右键,打开属性窗口。更改目标框架至少为4.5。

In Visual Studio 2013, open the project and right click on the project name to open the Properties window. Change the Target Framework to at least 4.5.

然后,在项目右键点击引用项目,然后选择管理的NuGet包。在窗口右侧选择更新,并下选择全部。这应该开始为所有需要的软件包进行更新搜索。当搜索完成的全部更新按钮,会出现这要是点击,将更新所有的包。

Then, on the project right click on the References item, and select Manage NuGet Packages. On the right side of the window select "Updates", and underneath select "All". This should begin a search for all packages needing to be updated. When the search completes an "Update All" button will appear which if clicked, will update all packages.

请注意,我的项目有UpgradeMvc3ToMvc4包。它不能升级此所以我卸载它第一次,但允许该dll的保持时问。

Note, my project had the UpgradeMvc3ToMvc4 package. It could not upgrade this so I uninstalled it first, but allowed the dll's to remain when asked.

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

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