From 96b1a110ecd266f57e2284e506438056754d41a1 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Mon, 10 Feb 2025 13:37:26 -0800 Subject: [PATCH 1/2] Move generation of SuggestedBindingRedirects.targets to inner build These targets depend on the AssemblyVersion of the library which is specific to the inner-build of the library. Generate them in the inner-build. --- .../src/System.Resources.Extensions.csproj | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj b/src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj index e380af4d84271a..2976aaeea55366 100644 --- a/src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj +++ b/src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj @@ -9,7 +9,6 @@ false true $(BaseIntermediateOutputPath)SuggestedBindingRedirects.targets - $(BeforePack);GeneratePackageTargetsFile Provides classes which read and write resources in a format that supports non-primitive objects. Commonly Used Types: @@ -93,7 +92,8 @@ System.Resources.Extensions.PreserializedResourceWriter + AfterTargets="CoreCompile" + Condition="'$(TargetFramework)' == '$(NetCoreAppMinimum)'">