From eb8fffd0ecb152fd2dac8d3c42f62230fa64880e Mon Sep 17 00:00:00 2001 From: Matt Thalman Date: Thu, 13 Apr 2023 14:52:55 -0500 Subject: [PATCH] Enable PVP flow for command-line-api (#16109) --- .../repo-projects/command-line-api.proj | 1 + ...-TFM-when-building-with-source-build.patch | 68 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 src/SourceBuild/patches/command-line-api/0002-Use-net8.0-TFM-when-building-with-source-build.patch diff --git a/src/SourceBuild/content/repo-projects/command-line-api.proj b/src/SourceBuild/content/repo-projects/command-line-api.proj index 5b5e67332..7c799ae2a 100644 --- a/src/SourceBuild/content/repo-projects/command-line-api.proj +++ b/src/SourceBuild/content/repo-projects/command-line-api.proj @@ -9,6 +9,7 @@ $(StandardSourceBuildCommand) $(BuildCommandArgs) true + DependenciesOnly diff --git a/src/SourceBuild/patches/command-line-api/0002-Use-net8.0-TFM-when-building-with-source-build.patch b/src/SourceBuild/patches/command-line-api/0002-Use-net8.0-TFM-when-building-with-source-build.patch new file mode 100644 index 000000000..78fa7b0cc --- /dev/null +++ b/src/SourceBuild/patches/command-line-api/0002-Use-net8.0-TFM-when-building-with-source-build.patch @@ -0,0 +1,68 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Matt Thalman +Date: Thu, 6 Apr 2023 09:16:13 -0500 +Subject: [PATCH] Use net8.0 TFM when building with source-build + +Backport: https://github.com/dotnet/command-line-api/pull/2150 +--- + Directory.Build.props | 6 +++--- + .../System.CommandLine.Benchmarks.csproj | 4 ++-- + src/System.CommandLine/System.CommandLine.csproj | 4 ++-- + 3 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/Directory.Build.props b/Directory.Build.props +index 4c1f04a2..0444426a 100644 +--- a/Directory.Build.props ++++ b/Directory.Build.props +@@ -11,11 +11,11 @@ + 10.0 + + +- +- net7.0 ++ ++ $(NetCurrent) + + +- ++ + net7.0 + + +diff --git a/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj b/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj +index b63e109c..3ef1afa1 100644 +--- a/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj ++++ b/src/System.CommandLine.Benchmarks/System.CommandLine.Benchmarks.csproj +@@ -9,8 +9,8 @@ + false + + +- net7.0 +- net7.0 ++ $(TargetFrameworkForNETSDK) ++ $(TargetFrameworkForNETSDK) + + + False +diff --git a/src/System.CommandLine/System.CommandLine.csproj b/src/System.CommandLine/System.CommandLine.csproj +index 05d28476..37115d70 100644 +--- a/src/System.CommandLine/System.CommandLine.csproj ++++ b/src/System.CommandLine/System.CommandLine.csproj +@@ -3,7 +3,7 @@ + + true + System.CommandLine +- net7.0;netstandard2.0 ++ $(TargetFrameworkForNETSDK);netstandard2.0 + enable + true + 10 +@@ -18,7 +18,7 @@ + true + + +- ++ + true + true +