From affb21297a0cf90bdc7dcc5eb4751adcb2404abf Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Thu, 29 Apr 2021 12:28:15 +0200 Subject: [PATCH 1/3] Stop harvesting S.Sec.Cryptography.Pkcs The removed configurations (netstandard1.3, netcoreapp2.1, net46) of the touched packages aren't built anymore. Instead the already built matching binaries from the latest available packages are redistributed when packaging these libraries. Dropping these assets as the minimum supported set of platforms are ones that support netstandard2.0 and are still in-support. As an example, also dropping the netcoreapp2.1 asset which isn't supported anymore and adding a target to prevent the package being used for netcoreapp2.x. For .NET Framework, there's still a net461 configuration present to avoid binding redirect issues. Contributes to #47530 --- .../System.Security.Cryptography.Pkcs.pkgproj | 19 +++++++++---------- .../System.Security.Cryptography.Pkcs.targets | 6 ++++++ .../System.Security.Cryptography.Pkcs.csproj | 10 ++++------ .../System.Security.Cryptography.Pkcs.csproj | 7 +------ 4 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 src/libraries/System.Security.Cryptography.Pkcs/pkg/buildTransitive/System.Security.Cryptography.Pkcs.targets diff --git a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj index 1acbfcd5f63c50..9e97909ef6528e 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj +++ b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj @@ -2,18 +2,17 @@ - net461;netcoreapp3.0 + net461;netcoreapp2.0;uap10.0.16299 - - - - - - + + + + + + true diff --git a/src/libraries/System.Security.Cryptography.Pkcs/pkg/buildTransitive/System.Security.Cryptography.Pkcs.targets b/src/libraries/System.Security.Cryptography.Pkcs/pkg/buildTransitive/System.Security.Cryptography.Pkcs.targets new file mode 100644 index 00000000000000..e293d8184ea105 --- /dev/null +++ b/src/libraries/System.Security.Cryptography.Pkcs/pkg/buildTransitive/System.Security.Cryptography.Pkcs.targets @@ -0,0 +1,6 @@ + + + + + diff --git a/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj b/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj index 5b42437c4fab14..f3079cd3ff753a 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj +++ b/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj @@ -1,20 +1,18 @@ - $(NetCoreAppCurrent);netcoreapp3.0;netstandard2.1;net461 + $(NetCoreAppCurrent);netcoreapp3.0;netstandard2.1;netstandard2.0;net461 true enable - true - - 4.0.4.0 + true - + - + diff --git a/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj b/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj index 71a20f021ca9c4..3f947a6f44e3bc 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj +++ b/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj @@ -1,7 +1,6 @@ true - true true $(NoWarn);CA5384 enable @@ -12,8 +11,7 @@ true true - - 4.0.4.0 + true @@ -640,9 +638,6 @@ - - - From 711ceb0ee12e50bedcf37f1e388ac471427ddb30 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 3 May 2021 21:35:22 +0200 Subject: [PATCH 2/3] Fix the build --- .../pkg/System.Security.Cryptography.Pkcs.pkgproj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj index 9e97909ef6528e..337b20d1062be7 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj +++ b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj @@ -11,8 +11,10 @@ TargetPath="buildTransitive\netcoreapp3.0" /> + + true - + From e3686686725b176fee5453e580ec4cb2b3ca88c1 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 3 May 2021 21:44:59 +0200 Subject: [PATCH 3/3] Remove workaround and mark Xamarin supported --- .../pkg/System.Security.Cryptography.Pkcs.pkgproj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj index 337b20d1062be7..740607c0579164 100644 --- a/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj +++ b/src/libraries/System.Security.Cryptography.Pkcs/pkg/System.Security.Cryptography.Pkcs.pkgproj @@ -2,7 +2,7 @@ - net461;netcoreapp2.0;uap10.0.16299 + net461;netcoreapp2.0;uap10.0.16299;$(AllXamarinFrameworks) - - - true -