Skip to content

Commit 10818b7

Browse files
committed
Fix nuget-client: respect PVP for crypto packages
1 parent 7c7c4d3 commit 10818b7

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

patches/nuget-client/0007-build-for-.NET-5.patch

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
From a25eb78bab34afc8a6ff082bebec9b8ca33a9f17 Mon Sep 17 00:00:00 2001
1+
From e0d440befafc6822a8807fa34a0a038e0456599e Mon Sep 17 00:00:00 2001
22
From: Tom Deseyn <[email protected]>
33
Date: Thu, 26 Nov 2020 08:26:13 +0100
44
Subject: [PATCH] nuget.client: build for .NET 5
55

6+
Update netcoreapp TFMs to 5.0.
7+
8+
Fix package references to comply with PackageVersions.props overrides.
69
---
710
build/common.project.props | 5 ++---
8-
build/packages.targets | 4 ++--
11+
build/packages.targets | 8 +++-----
912
src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj | 2 +-
10-
3 files changed, 5 insertions(+), 6 deletions(-)
13+
3 files changed, 6 insertions(+), 9 deletions(-)
1114

1215
diff --git a/build/common.project.props b/build/common.project.props
1316
index 03c93ae65..f578a2271 100644
@@ -33,24 +36,28 @@ index 03c93ae65..f578a2271 100644
3336
<RepositoryRootDirectory>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\</RepositoryRootDirectory>
3437
<BuildCommonDirectory>$(RepositoryRootDirectory)build\</BuildCommonDirectory>
3538
diff --git a/build/packages.targets b/build/packages.targets
36-
index 873850ccb..baa369e09 100644
39+
index 6ea9510dc..19df3657c 100644
3740
--- a/build/packages.targets
3841
+++ b/build/packages.targets
39-
@@ -8,7 +8,7 @@
42+
@@ -7,8 +7,6 @@
43+
<VSFrameworkVersion>16.6.30107.105</VSFrameworkVersion>
4044
<VSServicesVersion>16.153.0</VSServicesVersion>
4145
<VSThreadingVersion>16.7.56</VSThreadingVersion>
42-
<!-- TODO - remove this when temporary patching is no longer necessary. See https://github.com/nuget/home/issues/8952 -->
46+
- <!-- TODO - remove this when temporary patching is no longer necessary. See https://github.com/nuget/home/issues/8952 -->
4347
- <PatchedSystemPackagesVersion>5.0.0-preview.3.20214.6</PatchedSystemPackagesVersion>
44-
+ <PatchedSystemPackagesVersion>5.0.0</PatchedSystemPackagesVersion>
4548
</PropertyGroup>
4649

4750
<!-- Test and package versions -->
48-
@@ -66,7 +66,7 @@
51+
@@ -64,9 +62,9 @@
52+
<PackageReference Update="Newtonsoft.Json" Version="$(NewtonsoftJsonPackageVersion)" />
53+
<PackageReference Update="System.Collections.Immutable" Version="1.7.1" />
4954
<PackageReference Update="System.Diagnostics.Debug" Version="$(SystemPackagesVersion)" />
50-
<PackageReference Update="System.Security.Cryptography.Pkcs" Version="$(PatchedSystemPackagesVersion)" />
51-
<PackageReference Update="System.Security.Cryptography.Cng" Version="$(PatchedSystemPackagesVersion)" />
55+
- <PackageReference Update="System.Security.Cryptography.Pkcs" Version="$(PatchedSystemPackagesVersion)" />
56+
- <PackageReference Update="System.Security.Cryptography.Cng" Version="$(PatchedSystemPackagesVersion)" />
5257
- <PackageReference Update="System.Security.Cryptography.ProtectedData" Version="4.4.0" />
53-
+ <PackageReference Update="System.Security.Cryptography.ProtectedData" Version="$(PatchedSystemPackagesVersion)" />
58+
+ <PackageReference Update="System.Security.Cryptography.Pkcs" Version="$(SystemSecurityCryptographyPkcsVersion)" />
59+
+ <PackageReference Update="System.Security.Cryptography.Cng" Version="$(SystemSecurityCryptographyCngVersion)" />
60+
+ <PackageReference Update="System.Security.Cryptography.ProtectedData" Version="$(SystemSecurityCryptographyProtectedDataVersion)" />
5461
<PackageReference Update="System.Threading.Tasks.Dataflow" Version="4.9.0" />
5562
<PackageReference Update="VSLangProj" Version="7.0.3300" />
5663
<PackageReference Update="VSLangProj110" Version="11.0.61030" />
@@ -68,5 +75,5 @@ index 4f3ac234c..1ad241531 100644
6875
<TargetFramework />
6976
<NoWarn>$(NoWarn);CS1591;CS1574;CS1573</NoWarn>
7077
--
71-
2.26.2
78+
2.25.4
7279

patches/nuget-client/0008-Use-source-built-Microsoft.Web.Xdt.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c74570ea31e05f3f7b9d6de326d0b61c0bcf91d2 Mon Sep 17 00:00:00 2001
1+
From ce18ce78f27717cb1079270d6a58d5c36e70425a Mon Sep 17 00:00:00 2001
22
From: Davis Goodin <[email protected]>
33
Date: Thu, 10 Dec 2020 16:17:55 -0600
44
Subject: [PATCH] Use source-built Microsoft.Web.Xdt
@@ -8,11 +8,11 @@ Subject: [PATCH] Use source-built Microsoft.Web.Xdt
88
1 file changed, 5 insertions(+), 1 deletion(-)
99

1010
diff --git a/build/packages.targets b/build/packages.targets
11-
index 3cecece3e..f70aef127 100644
11+
index 19df3657c..7d8c01f84 100644
1212
--- a/build/packages.targets
1313
+++ b/build/packages.targets
14-
@@ -11,6 +11,10 @@
15-
<PatchedSystemPackagesVersion>5.0.0</PatchedSystemPackagesVersion>
14+
@@ -9,6 +9,10 @@
15+
<VSThreadingVersion>16.7.56</VSThreadingVersion>
1616
</PropertyGroup>
1717

1818
+ <PropertyGroup>
@@ -22,7 +22,7 @@ index 3cecece3e..f70aef127 100644
2222
<!-- Test and package versions -->
2323
<PropertyGroup>
2424
<XunitVersion>2.4.1</XunitVersion>
25-
@@ -60,7 +64,7 @@
25+
@@ -58,7 +62,7 @@
2626
<PackageReference Update="Microsoft.VisualStudio.Threading.Analyzers" Version="$(VSThreadingVersion)" />
2727
<PackageReference Update="Microsoft.VisualStudio.Workspace.VSIntegration" Version="16.6.55-preview-0003" />
2828
<PackageReference Update="Microsoft.VisualStudio.Utilities" Version="$(VSFrameworkVersion)" />

0 commit comments

Comments
 (0)