From 8f542ce3a2b28b554dd748aa7f45e45287e80a51 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Thu, 28 May 2026 01:23:00 +0200 Subject: [PATCH] Fix WinUI Projection DLL not found for .NET 9 consumers The NativeAssets.WinUI package placed the Projection DLL only in the net10.0-windows folder (WindowsTargetFrameworksCurrent). Since NuGet won't serve a higher TFM asset to a lower TFM consumer, .NET 9 apps couldn't resolve the assembly at runtime, causing FileNotFoundException. Fix by including the Projection DLL in ALL supported TFMs (both Current and Previous), ensuring every consumer TFM gets the assembly. This mirrors the pattern where lib/ placeholders exist for each TFM. Fixes #4082 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../SkiaSharp.NativeAssets.WinUI.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binding/SkiaSharp.NativeAssets.WinUI/SkiaSharp.NativeAssets.WinUI.csproj b/binding/SkiaSharp.NativeAssets.WinUI/SkiaSharp.NativeAssets.WinUI.csproj index a88a353faf1..7fe11ddacc0 100644 --- a/binding/SkiaSharp.NativeAssets.WinUI/SkiaSharp.NativeAssets.WinUI.csproj +++ b/binding/SkiaSharp.NativeAssets.WinUI/SkiaSharp.NativeAssets.WinUI.csproj @@ -7,10 +7,13 @@ + + + \ No newline at end of file