Skip to content

Commit 27c65e9

Browse files
authored
Improve templates for GA (#32251)
* Improve templates for GA * Update MauiApp.1.csproj for warnings and dependencies * Microsoft.Maui.Platform * ws
1 parent c17c624 commit 27c65e9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/Templates/src/templates/maui-mobile/MauiApp.1.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<ImplicitUsings>enable</ImplicitUsings>
2020
<Nullable>enable</Nullable>
2121
<!--#if (IncludeSampleContent) -->
22-
<!-- https://github.com/CommunityToolkit/Maui/issues/2205 -->
23-
<NoWarn>XC0103</NoWarn>
22+
<!-- https://github.com/CommunityToolkit/Maui/issues/2921 -->
23+
<NoWarn>NU1608</NoWarn>
2424
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
2525
<!--#endif -->
2626

@@ -76,6 +76,7 @@
7676

7777
<ItemGroup>
7878
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
79+
<PackageReference Include="Microsoft.Maui.Essentials" Version="$(MauiVersion)" />
7980
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="MS_EXT_LOG_DEBUG_VERSION" />
8081
</ItemGroup>
8182

src/Templates/src/templates/maui-mobile/MauiProgram.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public static MauiApp CreateMauiApp()
2727
handler.PlatformView.SingleSelectionFollowsFocus = false;
2828
});
2929

30-
Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) =>
31-
{
32-
if (view is Pages.Controls.CategoryChart && handler.PlatformView is ContentPanel contentPanel)
33-
{
34-
contentPanel.IsTabStop = true;
35-
}
36-
});
30+
Microsoft.Maui.Handlers.ContentViewHandler.Mapper.AppendToMapping(nameof(Pages.Controls.CategoryChart), (handler, view) =>
31+
{
32+
if (view is Pages.Controls.CategoryChart && handler.PlatformView is Microsoft.Maui.Platform.ContentPanel contentPanel)
33+
{
34+
contentPanel.IsTabStop = true;
35+
}
36+
});
3737
#endif
38-
})
38+
})
3939
//+:cnd:noEmit
4040
#endif
4141
.ConfigureFonts(fonts =>

src/TestUtils/src/Microsoft.Maui.IntegrationTests/SimpleTemplateTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ public class SimpleTemplateTest : BaseTemplateTests
1111
[TestCase("maui", DotNetPrevious, "Release", false, "", "")]
1212
[TestCase("maui", DotNetCurrent, "Debug", false, "", "")]
1313
[TestCase("maui", DotNetCurrent, "Release", false, "", "TrimMode=partial")]
14-
// TODO: Re-enable tests once the Community Toolkit supports .NET 10. More details: https://github.com/dotnet/maui/issues/32151
15-
//[TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "")]
16-
//[TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "TrimMode=partial")]
14+
[TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "")]
15+
[TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "TrimMode=partial")]
1716
//Debug not ready yet
1817
//[TestCase("maui", DotNetCurrent, "Debug", false, "--sample-content", "UseMonoRuntime=false")]
1918
//[TestCase("maui", DotNetCurrent, "Release", false, "--sample-content", "UseMonoRuntime=false EnablePreviewFeatures=true")]

0 commit comments

Comments
 (0)