From 53cbeddfd45eed1f53f7def30fb7550a48d4bb0c Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 28 Oct 2025 19:52:56 +0200 Subject: [PATCH 1/4] Improve templates for GA --- .../Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs index 10038074f76d..ff1af653ea1a 100644 --- a/src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs +++ b/src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs @@ -11,9 +11,8 @@ public class SimpleTemplateTest : BaseTemplateTests [TestCase("maui", DotNetPrevious, "Release", false, "", "")] [TestCase("maui", DotNetCurrent, "Debug", false, "", "")] [TestCase("maui", DotNetCurrent, "Release", false, "", "TrimMode=partial")] - // TODO: Re-enable tests once the Community Toolkit supports .NET 10. More details: https://github.com/dotnet/maui/issues/32151 - //[TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "")] - //[TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "TrimMode=partial")] + [TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "")] + [TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "TrimMode=partial")] //Debug not ready yet //[TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "UseMonoRuntime=false")] //[TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "UseMonoRuntime=false EnablePreviewFeatures=true")] From 877ff358760a47a37dcb562f110d083323fd758d Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 28 Oct 2025 21:37:40 +0200 Subject: [PATCH 2/4] Update MauiApp.1.csproj for warnings and dependencies --- src/Templates/src/templates/maui-mobile/MauiApp.1.csproj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj index 6e933fcf6b62..3add1e2bb2d5 100644 --- a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj @@ -19,8 +19,8 @@ enable enable - - XC0103 + + NU1608 true @@ -76,6 +76,7 @@ + From 5dd1e242665dbcce9c6e47da5d3d102776afa6ff Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 28 Oct 2025 23:47:36 +0200 Subject: [PATCH 3/4] Microsoft.Maui.Platform --- src/Templates/src/templates/maui-mobile/MauiProgram.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Templates/src/templates/maui-mobile/MauiProgram.cs b/src/Templates/src/templates/maui-mobile/MauiProgram.cs index 506153c5bfbe..91215eebe3ec 100644 --- a/src/Templates/src/templates/maui-mobile/MauiProgram.cs +++ b/src/Templates/src/templates/maui-mobile/MauiProgram.cs @@ -29,7 +29,7 @@ public static MauiApp CreateMauiApp() Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) => { - if (view is Pages.Controls.CategoryChart && handler.PlatformView is ContentPanel contentPanel) + if (view is Pages.Controls.CategoryChart && handler.PlatformView is Microsoft.Maui.Platform.ContentPanel contentPanel) { contentPanel.IsTabStop = true; } From 2702a860c703f794628d6bc00d2ce3d12e254f10 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 28 Oct 2025 23:48:24 +0200 Subject: [PATCH 4/4] ws --- .../src/templates/maui-mobile/MauiProgram.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Templates/src/templates/maui-mobile/MauiProgram.cs b/src/Templates/src/templates/maui-mobile/MauiProgram.cs index 91215eebe3ec..6d39119e59bc 100644 --- a/src/Templates/src/templates/maui-mobile/MauiProgram.cs +++ b/src/Templates/src/templates/maui-mobile/MauiProgram.cs @@ -27,15 +27,15 @@ public static MauiApp CreateMauiApp() handler.PlatformView.SingleSelectionFollowsFocus = false; }); - Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) => - { - if (view is Pages.Controls.CategoryChart && handler.PlatformView is Microsoft.Maui.Platform.ContentPanel contentPanel) - { - contentPanel.IsTabStop = true; - } - }); + Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) => + { + if (view is Pages.Controls.CategoryChart && handler.PlatformView is Microsoft.Maui.Platform.ContentPanel contentPanel) + { + contentPanel.IsTabStop = true; + } + }); #endif - }) + }) //+:cnd:noEmit #endif .ConfigureFonts(fonts =>