From 8d685566b7770c0b627d57574c9f9f59adf4675b Mon Sep 17 00:00:00 2001 From: Layomi Akinrinade Date: Fri, 1 Sep 2023 09:54:44 -0700 Subject: [PATCH 1/2] Enable interceptors implicitly in binder gen nupkg when generator is enabled --- ...Microsoft.Extensions.Configuration.Binder.targets | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets b/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets index f091c7a57b23a..a5a134501686f 100644 --- a/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets +++ b/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets @@ -1,5 +1,5 @@ - @@ -8,6 +8,16 @@ + + + + + $(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration + + + From f49902207c2a38608d488752da527c54ddf28df6 Mon Sep 17 00:00:00 2001 From: Layomi Akinrinade Date: Mon, 4 Sep 2023 09:55:48 -0700 Subject: [PATCH 2/2] Simplify impl & remove unneeded target --- ...ft.Extensions.Configuration.Binder.targets | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets b/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets index a5a134501686f..fdfd48d12a75a 100644 --- a/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets +++ b/src/libraries/Microsoft.Extensions.Configuration.Binder/src/buildTransitive/Microsoft.Extensions.Configuration.Binder.targets @@ -1,4 +1,9 @@ + + + $(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration + + @@ -8,18 +13,8 @@ - - - - - $(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration - - - - + <_Microsoft_Extensions_Configuration_Binder_Compatible_TargetFramework Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netcoreapp2.0')) AND