asp.net-mvc Visual Studio 2010 是否支持 MVC 5?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20898953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 03:24:53  来源:igfitidea点击:

Does Visual Studio 2010 support MVC 5?

asp.net-mvcvisual-studio-2010asp.net-mvc-5

提问by Abdul

My question is can we develop an application in Visual Studio 2010 using MVC 5?

我的问题是我们可以使用 MVC 5 在 Visual Studio 2010 中开发应用程序吗?

If yes, please also mention the tutorial or sample code url with your answer.

如果是,请同时在答案中提及教程或示例代码网址。

If no, then please specify the requirements of MVC 5 to build an application with it?

如果不是,那么请指定 MVC 5 的要求来构建应用程序?

回答by Ralph Jansen

No it isn't possible. You need Visual Studio 2012 and I thought .NET 4.5 at least. See the upgrade notes for detail information http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

不,这是不可能的。您需要 Visual Studio 2012,我认为至少需要 .NET 4.5。有关详细信息,请参阅升级说明http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet -mvc-5-and-web-api-2

回答by Aby

You need VS 2012 or above to have MVC5 support.

您需要 VS 2012 或更高版本才能获得 MVC5 支持。

回答by Amit

From the EF Blog

来自英孚博客

Compatibility

This version of the NuGet package is fully compatible with Visual Studio 2010 and Visual Studio 2012 and can be used for applications targeting .NET 4.0 and 4.5.

Some features are only available when writing an application that targets .NET 4.5. This includes enum support, spatial data types, table-valued functions and the performance improvements.

兼容性

此版本的 NuGet 包与 Visual Studio 2010 和 Visual Studio 2012 完全兼容,可用于面向 .NET 4.0 和 4.5 的应用程序。

某些功能仅在编写面向 .NET 4.5 的应用程序时可用。这包括枚举支持、空间数据类型、表值函数和性能改进。

I was able to add EF5 to an MVC4 project through NuGet. You can certainly use MVC 4, you just won't get all the new features unless you're on VS2012.

我能够通过 NuGet 将 EF5 添加到 MVC4 项目。您当然可以使用MVC 4,除非您使用 VS2012,否则您将无法获得所有新功能。

Difference MVC3 VS MVC4

MVC3 与 MVC4 的区别