Microsoft.AspNetCore.Mvc.DataAnnotations 2.2.0

Prefix Reserved
Additional Details

This package has been deprecated as part of the .NET Package Deprecation effort. You can learn more about it from

dotnet add package Microsoft.AspNetCore.Mvc.DataAnnotations --version 2.2.0                
NuGet\Install-Package Microsoft.AspNetCore.Mvc.DataAnnotations -Version 2.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.AspNetCore.Mvc.DataAnnotations" Version="2.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.AspNetCore.Mvc.DataAnnotations --version 2.2.0                
#r "nuget: Microsoft.AspNetCore.Mvc.DataAnnotations, 2.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.AspNetCore.Mvc.DataAnnotations as a Cake Addin
#addin nuget:?package=Microsoft.AspNetCore.Mvc.DataAnnotations&version=2.2.0

// Install Microsoft.AspNetCore.Mvc.DataAnnotations as a Cake Tool
#tool nuget:?package=Microsoft.AspNetCore.Mvc.DataAnnotations&version=2.2.0                

ASP.NET Core MVC metadata and validation system using System.ComponentModel.DataAnnotations.

This package was built from the source code at

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (114)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.Mvc.DataAnnotations:

Package Downloads

Swagger Generator for APIs built on ASP.NET Core


ASP.NET Core MVC view rendering features. Contains common types used in most MVC applications as well as view rendering features such as view engines, views, view components, and HTML helpers. Commonly used types: Microsoft.AspNetCore.Mvc.Controller Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute Microsoft.AspNetCore.Mvc.ViewComponent This package was built from the source code at


ASP.NET Core MVC is a web framework that gives you a powerful, patterns-based way to build dynamic websites and web APIs. ASP.NET Core MVC enables a clean separation of concerns and gives you full control over markup. This package was built from the source code at


Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at


Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at

GitHub repositories (18)

Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNetCore.Mvc.DataAnnotations:

Repository Stars
Swagger tools for documenting API's built on ASP.NET Core
Sample solutions built with the ABP Framework
Vulnerability Patterns Detector for C# and VB.NET
OData Web API: A server library built upon ODataLib and WebApi
[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to
Version Downloads Last updated
2.2.0 122,964,207 12/3/2018
2.2.0-preview3-35497 95,457 10/17/2018
2.2.0-preview2-35157 39,401 9/12/2018
2.2.0-preview1-35029 23,751 8/22/2018
2.1.3 25,092,384 10/1/2018
2.1.2 8,280,466 8/21/2018
2.1.1 16,592,025 6/18/2018
2.1.0 37,518,690 5/29/2018
2.1.0-rc1-final 110,502 5/6/2018
2.1.0-preview2-final 126,055 4/10/2018
2.1.0-preview1-final 138,837 2/26/2018
2.0.4 6,777,572 5/7/2018
2.0.3 6,919,193 3/13/2018
2.0.2 9,899,078 1/9/2018
2.0.1 8,265,989 11/14/2017
2.0.0 62,651,945 8/11/2017
2.0.0-preview2-final 99,721 6/27/2017
2.0.0-preview1-final 25,505 5/10/2017
1.1.8 1,460,537 7/10/2018
1.1.7 299,128 3/13/2018
1.1.6 141,385 12/12/2017
1.1.5 51,115 11/14/2017
1.1.4 180,268 9/20/2017
1.1.3 3,522,230 5/9/2017
1.1.2 3,982,695 3/6/2017
1.1.1 793,832 1/27/2017
1.1.0 2,032,270 11/16/2016
1.1.0-preview1-final 27,919 10/24/2016
1.0.6 745,915 11/14/2017
1.0.5 17,261 9/20/2017
1.0.4 22,743,879 5/9/2017
1.0.3 2,948,446 3/6/2017
1.0.2 524,312 12/12/2016
1.0.1 1,063,507 9/13/2016
1.0.0 10,466,275 6/27/2016
1.0.0-rc2-final 172,925 5/16/2016