diff --git a/src/SourceBuild/tarball/patches/aspnetcore/0005-Enable-targeting-pack-build-during-source-build.patch b/src/SourceBuild/tarball/patches/aspnetcore/0005-Enable-targeting-pack-build-during-source-build.patch new file mode 100644 index 000000000..a39dd0021 --- /dev/null +++ b/src/SourceBuild/tarball/patches/aspnetcore/0005-Enable-targeting-pack-build-during-source-build.patch @@ -0,0 +1,61 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Davis Goodin +Date: Mon, 18 Oct 2021 14:25:29 -0500 +Subject: [PATCH] Enable targeting pack build during source-build + +For prebuilt removal: https://github.com/dotnet/source-build/issues/2506 + +Upstream PR to main: https://github.com/dotnet/aspnetcore/pull/37652 +--- + Directory.Build.props | 1 - + Directory.Build.targets | 4 ++-- + .../CodeFixes/Microsoft.AspNetCore.App.CodeFixes.csproj | 7 +++++++ + 3 files changed, 9 insertions(+), 3 deletions(-) + +diff --git a/Directory.Build.props b/Directory.Build.props +index 204df64da7..77045590cd 100644 +--- a/Directory.Build.props ++++ b/Directory.Build.props +@@ -142,7 +142,6 @@ + aspnetcore-targeting-pack + + +- false + false + true +diff --git a/Directory.Build.targets b/Directory.Build.targets +index 6e30c30881..1f1616124b 100644 +--- a/Directory.Build.targets ++++ b/Directory.Build.targets +@@ -1,10 +1,10 @@ +  + + +- ++ + + true ++ Condition="'$(ExcludeFromSourceBuild)' == '' and '$(DotNetBuildFromSource)' == 'true' and '$(IsAspNetCoreApp)' != 'true' and '$(MSBuildProjectName)' != '$(TargetingPackName)' and '$(IsAnalyzersProject)' != 'true'">true + + +diff --git a/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Microsoft.AspNetCore.App.CodeFixes.csproj b/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Microsoft.AspNetCore.App.CodeFixes.csproj +index d70178504e..02bad93889 100644 +--- a/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Microsoft.AspNetCore.App.CodeFixes.csproj ++++ b/src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Microsoft.AspNetCore.App.CodeFixes.csproj +@@ -2,6 +2,13 @@ + + CSharp CodeFixes for ASP.NET Core. + false ++ ++ true + false + netstandard2.0 + false