From d558ab67d2da693bb47d6281e5681edb6fce00b1 Mon Sep 17 00:00:00 2001 From: ThomasGoulet73 Date: Wed, 13 Jul 2022 22:39:39 -0400 Subject: [PATCH] Fix build when using source generators coming from NuGet packages. Fixes dotnet/wpf#6792 --- .../src/PresentationBuildTasks/Microsoft.WinFX.targets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets index 69112522630..88951d23eb3 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets +++ b/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft.WinFX.targets @@ -435,6 +435,11 @@ <_IntermediateOutputPathNoTargetFrameworkOrRID>$([System.Text.RegularExpressions.Regex]::Replace($(_IntermediateOutputPathNoTargetFrameworkOrRID), "$(TargetFramework)\\$",, System.Text.RegularExpressions.RegexOptions.IgnoreCase)) + + + <_TemporaryTargetAssemblyAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.FrameworkReferenceName)' != ''" /> + +