Skip to content

Commit

Permalink
Enable XAML C# binding and set Git info report importance
Browse files Browse the repository at this point in the history
Updated App.csproj and IeuanWalker.Maui.Switch.csproj to enable
XAML C# binding with source compilation for .NET MAUI projects.
Added a new PropertyGroup in IeuanWalker.Maui.Switch.csproj to
set GitInfoReportImportance to high.
  • Loading branch information
IeuanWalker committed Nov 19, 2024
1 parent 7b98a33 commit 383b150
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Demo/App/App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
Expand Down
4 changes: 3 additions & 1 deletion Scr/Switch/IeuanWalker.Maui.Switch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<Nullable>enable</Nullable>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>

<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</PropertyGroup>
<PropertyGroup>
<GitInfoReportImportance>high</GitInfoReportImportance>
<PackageId>IeuanWalker.Maui.Switch</PackageId>
<Summary>A control that allows you to design any type of switch/ toggle for .NET MAUI. It's also 100% accessible.</Summary>
Expand Down

0 comments on commit 383b150

Please sign in to comment.