ASP.NET MVC 5.1等框架发布
jopen 11年前
微软发布了 ASP.NET MVC 5.1,同时还发布了 ASP.NET Web API 2.1 和 ASP.NET Web Pages 3.1。
可以使用 NuGet Package Manager Console 安装:
- Install-Package Microsoft.AspNet.Mvc -Version 5.1.0
- Install-Package Microsoft.AspNet.WebApi -Version 2.1.0
- Install-Package Microsoft.AspNet.WebPages -Version 3.1.0
预置要求
如果你正在使用 VS2012,需安装 ASP.NET and Web Tools 2013.1 for Visual Studio 2012
如果你正在使用 VS2013,需安装 Visual Studio 2013 Update 1
ASP.NET MVC 5.1 新特性有
- Attribute routing improvements
- Bootstrap support for editor templates
- Enum support in views
- Unobtrusive validation for MinLength/MaxLength Attributes
- Supporting the ‘this’ context in Unobtrusive Ajax
- Various bug fixes
ASP.NET Web API 2.1 新特性有
- Global error handling
- Attribute routing improvements
- Help Page improvements
- IgnoreRoute support
- BSON media-type formatter
- Better support for async filters
- Query parsing for the client formatting library
- Various bug fixes
ASP.NET Web Pages 3.1 新特性有
- Various bug fixes
完整的特性可以从以下列表访问
来自: blogs.msdn.com