From f68b3692cad87e3e222fd1d1a4bc3f75ca5f382b Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 17 Jan 2025 19:58:15 -0800 Subject: [PATCH] Fix UWP detection on modern .NET --- .../AppServiceGenerator.Helpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.Helpers.cs b/components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.Helpers.cs index ed86c952a..3cdd1dc31 100644 --- a/components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.Helpers.cs +++ b/components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AppServiceGenerator.Helpers.cs @@ -34,7 +34,7 @@ public static bool IsUwpTarget(Compilation compilation, AnalyzerConfigOptions an { if (bool.TryParse(propertyValue, out bool useUwpTools)) { - return true; + return useUwpTools; } }