From 1c660be4528151f6cbe63fa8471f9a4b05399469 Mon Sep 17 00:00:00 2001 From: Dipesh Kumar Date: Thu, 14 Jul 2022 21:25:12 +0530 Subject: [PATCH 1/2] Better fix build when using source generators coming from NuGet package --- .../Microsoft.WinFX.targets | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets index 88951d23eb3..6e3f176ae9e 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets @@ -435,11 +435,6 @@ <_IntermediateOutputPathNoTargetFrameworkOrRID>$([System.Text.RegularExpressions.Regex]::Replace($(_IntermediateOutputPathNoTargetFrameworkOrRID), "$(TargetFramework)\\$",, System.Text.RegularExpressions.RegexOptions.IgnoreCase)) - - - <_TemporaryTargetAssemblyAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.FrameworkReferenceName)' != ''" /> - - @@ -491,6 +486,20 @@ Condition="Exists('%(Fullpath)')" /> + + + + + + + +