From 061a4af379011677657522ab3186bcb57a6c2822 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 26 Apr 2021 22:44:15 +0200 Subject: [PATCH] Dead end System.ComponentModel.Annotations package Nearly all configurations in the System.ComponentModel.Annotations package weren't built live anymore and just redistributed from older packages. Except for the netstandard2.0 configuration, the package didn't receive any changes. As the library is exposed as part of the shared framework, a reference to the package on .NETCoreApp isn't necessary and will be ignored by the SDK. Based on these reasons, dead-ending the package to remove the burden of maintaining the harvesting of old configurations. Contributes to https://github.com/dotnet/runtime/issues/47530 --- eng/Versions.props | 2 +- ....Extensions.Options.DataAnnotations.csproj | 6 +--- .../Directory.Build.props | 13 --------- .../System.ComponentModel.Annotations.pkgproj | 29 ------------------- .../System.ComponentModel.Annotations.csproj | 12 ++++---- .../System.ComponentModel.Annotations.csproj | 11 ++----- src/libraries/pkg/baseline/packageIndex.json | 5 ++-- 7 files changed, 13 insertions(+), 65 deletions(-) delete mode 100644 src/libraries/System.ComponentModel.Annotations/pkg/System.ComponentModel.Annotations.pkgproj diff --git a/eng/Versions.props b/eng/Versions.props index 3438a89b00313..b006d304bfcca 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -81,7 +81,7 @@ 4.5.1 4.3.0 4.3.0 - 4.7.0 + 5.0.0 4.8.1 4.3.0 4.3.0 diff --git a/src/libraries/Microsoft.Extensions.Options.DataAnnotations/src/Microsoft.Extensions.Options.DataAnnotations.csproj b/src/libraries/Microsoft.Extensions.Options.DataAnnotations/src/Microsoft.Extensions.Options.DataAnnotations.csproj index bcf5ce56123e9..56e09a3300f20 100644 --- a/src/libraries/Microsoft.Extensions.Options.DataAnnotations/src/Microsoft.Extensions.Options.DataAnnotations.csproj +++ b/src/libraries/Microsoft.Extensions.Options.DataAnnotations/src/Microsoft.Extensions.Options.DataAnnotations.csproj @@ -10,14 +10,10 @@ - + - - - - diff --git a/src/libraries/System.ComponentModel.Annotations/Directory.Build.props b/src/libraries/System.ComponentModel.Annotations/Directory.Build.props index 4c4a6c680d76c..63f02a0f817ef 100644 --- a/src/libraries/System.ComponentModel.Annotations/Directory.Build.props +++ b/src/libraries/System.ComponentModel.Annotations/Directory.Build.props @@ -2,18 +2,5 @@ Microsoft - Provides attributes that are used to define metadata for objects used as data sources. - -Commonly Used Types: -System.ComponentModel.DataAnnotations.ValidationResult -System.ComponentModel.DataAnnotations.IValidatableObject -System.ComponentModel.DataAnnotations.ValidationAttribute -System.ComponentModel.DataAnnotations.RequiredAttribute -System.ComponentModel.DataAnnotations.StringLengthAttribute -System.ComponentModel.DataAnnotations.DisplayAttribute -System.ComponentModel.DataAnnotations.RegularExpressionAttribute -System.ComponentModel.DataAnnotations.DataTypeAttribute -System.ComponentModel.DataAnnotations.RangeAttribute -System.ComponentModel.DataAnnotations.KeyAttribute \ No newline at end of file diff --git a/src/libraries/System.ComponentModel.Annotations/pkg/System.ComponentModel.Annotations.pkgproj b/src/libraries/System.ComponentModel.Annotations/pkg/System.ComponentModel.Annotations.pkgproj deleted file mode 100644 index dd046a9850aac..0000000000000 --- a/src/libraries/System.ComponentModel.Annotations/pkg/System.ComponentModel.Annotations.pkgproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - - netcoreapp3.0;$(AllXamarinFrameworks) - - - - - - - - - - - System.ComponentModel.DataAnnotations - - - - - - .NETStandard,Version=v1.1;.NETStandard,Version=v1.2;.NETStandard,Version=v1.3 - - - .NETCoreApp;UAP - - - - \ No newline at end of file diff --git a/src/libraries/System.ComponentModel.Annotations/ref/System.ComponentModel.Annotations.csproj b/src/libraries/System.ComponentModel.Annotations/ref/System.ComponentModel.Annotations.csproj index 0f88fe44694e2..2267869cc4b98 100644 --- a/src/libraries/System.ComponentModel.Annotations/ref/System.ComponentModel.Annotations.csproj +++ b/src/libraries/System.ComponentModel.Annotations/ref/System.ComponentModel.Annotations.csproj @@ -1,12 +1,14 @@ - netstandard2.1 + $(NetCoreAppCurrent) enable - - - - \ No newline at end of file + + + + + + diff --git a/src/libraries/System.ComponentModel.Annotations/src/System.ComponentModel.Annotations.csproj b/src/libraries/System.ComponentModel.Annotations/src/System.ComponentModel.Annotations.csproj index bc9a4134bad68..9c9dfebee9acc 100644 --- a/src/libraries/System.ComponentModel.Annotations/src/System.ComponentModel.Annotations.csproj +++ b/src/libraries/System.ComponentModel.Annotations/src/System.ComponentModel.Annotations.csproj @@ -1,7 +1,6 @@ - $(NetCoreAppCurrent);netstandard2.1 - true + $(NetCoreAppCurrent) enable