From 6a1f058ba5b96c444b3e6da49338901b7ac0f2ac Mon Sep 17 00:00:00 2001 From: Nikola Milosavljevic Date: Wed, 31 May 2023 19:44:57 +0000 Subject: [PATCH] Patch for net8.0 targeting in nuget.client --- .../0001-Target-net8.0-for-source-build.patch | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 src/SourceBuild/patches/nuget-client/0001-Target-net8.0-for-source-build.patch diff --git a/src/SourceBuild/patches/nuget-client/0001-Target-net8.0-for-source-build.patch b/src/SourceBuild/patches/nuget-client/0001-Target-net8.0-for-source-build.patch new file mode 100644 index 000000000..d9c0e85ff --- /dev/null +++ b/src/SourceBuild/patches/nuget-client/0001-Target-net8.0-for-source-build.patch @@ -0,0 +1,96 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nikola Milosavljevic +Date: Wed, 31 May 2023 16:04:51 +0000 +Subject: [PATCH] Target net8.0 for source-build + +Backport: https://github.com/NuGet/NuGet.Client/pull/5193 +--- + build/common.project.props | 8 ++++---- + build/common.targets | 2 +- + eng/source-build/global.json | 2 +- + .../NuGet.Configuration/NuGet.Configuration.csproj | 2 +- + .../NuGet.PackageManagement.csproj | 2 +- + 5 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/build/common.project.props b/build/common.project.props +index 0e32eb737..de8b07140 100644 +--- a/build/common.project.props ++++ b/build/common.project.props +@@ -12,7 +12,7 @@ + v4.7.2 + net472 + netcoreapp3.1 +- net7.0 ++ net8.0 + net7.0 + net7.0;net8.0 + netstandard2.0 +@@ -20,14 +20,14 @@ + $(NETCoreTargetFramework) + $(TargetFrameworksExe);netcoreapp5.0 + $(NETCoreTargetFramework);netcoreapp5.0 +- $(TargetFrameworksExe);net7.0 ++ $(TargetFrameworksExe) + $(NETFXTargetFramework);netcoreapp5.0 + netcoreapp5.0 +- net7.0 ++ $(NETCoreTargetFramework) + $(NETFXTargetFramework);$(NetStandardVersion) + $(NETCoreTargetFramework);$(NetStandardVersion) + $(TargetFrameworksLibrary);netcoreapp5.0 +- $(TargetFrameworksLibrary);net7.0 ++ $(TargetFrameworksLibrary) + $(NETFXTargetFramework);$(NETCoreTestTargetFrameworks) + $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\ + $(RepositoryRootDirectory)build\ +diff --git a/build/common.targets b/build/common.targets +index 51b38ba04..dc53d7557 100644 +--- a/build/common.targets ++++ b/build/common.targets +@@ -6,7 +6,7 @@ + true + + +- ++ + $(DefineConstants);IS_CORECLR + true + +diff --git a/eng/source-build/global.json b/eng/source-build/global.json +index ba3ce2cfc..43d452859 100644 +--- a/eng/source-build/global.json ++++ b/eng/source-build/global.json +@@ -1,6 +1,6 @@ + { + "tools": { +- "dotnet": "7.0.100" ++ "dotnet": "8.0.100-preview.3.23178.7" + }, + "msbuild-sdks": { + "Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21309.7" +diff --git a/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj b/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj +index a246feeb9..eea152eb6 100644 +--- a/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj ++++ b/src/NuGet.Core/NuGet.Configuration/NuGet.Configuration.csproj +@@ -26,7 +26,7 @@ + + + +- ++ + + + +diff --git a/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj b/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj +index be1727a5b..38658b221 100644 +--- a/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj ++++ b/src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj +@@ -32,7 +32,7 @@ + + + +- ++ + + +