Skip to content

Commit 360f436

Browse files
authored
Improve TFM condition for sample content template (#28865)
* Improve TFM condition for sample content template * Update ManageMetaPage.xaml
1 parent 6ff7573 commit 360f436

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@
8484
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
8585
<!--#if (Framework == "net8.0") -->
8686
<PackageReference Include="CommunityToolkit.Maui" Version="9.1.0" />
87-
<!--#endif-->
88-
<!--#if (Framework == "net9.0") -->
87+
<!--#else-->
8988
<PackageReference Include="CommunityToolkit.Maui" Version="11.1.1" />
9089
<!--#endif-->
9190
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.8" />

src/Templates/src/templates/maui-mobile/Pages/ManageMetaPage.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@
6464
InvalidStyle="{StaticResource InvalidEntryStyle}"
6565
<!--#if (Framework == "net8.0") -->
6666
Flags="ValidateOnUnfocusing"
67-
<!--#endif -->
68-
<!--#if (Framework == "net9.0") -->
67+
<!--#else -->
6968
Flags="ValidateOnUnfocused"
7069
<!--#endif -->
7170
RegexPattern="^#(?:[0-9a-fA-F]{3}){1,2}$" />
@@ -111,8 +110,7 @@
111110
InvalidStyle="{StaticResource InvalidEntryStyle}"
112111
<!--#if (Framework == "net8.0") -->
113112
Flags="ValidateOnUnfocusing"
114-
<!--#endif -->
115-
<!--#if (Framework == "net9.0") -->
113+
<!--#else -->
116114
Flags="ValidateOnUnfocused"
117115
<!--#endif -->
118116
RegexPattern="^#(?:[0-9a-fA-F]{3}){1,2}$" />

0 commit comments

Comments
 (0)