Skip to content

Commit

Permalink
fix: Fixed missing SupportedOSPlatformVersion for MAUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Mar 18, 2024
1 parent 885ec60 commit 7d0a3a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>

<PropertyGroup Label="Nuget">
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<Description>Modern cross-platform QR code generation, rendering and serialization.</Description>
<PackageTags>qr;qrcode;qrcoder;cross-platform;logo;modern;net8</PackageTags>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down
10 changes: 9 additions & 1 deletion src/libs/QrCodes.Maui/QrCodes.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<UseMaui>true</UseMaui>
<NoWarn>$(NoWarn);CA1031;CA2000</NoWarn>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>

<PropertyGroup Label="NuGet">
Expand All @@ -26,7 +33,8 @@
<!-- </ItemGroup>-->

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.3" />
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
<PackageReference Include="DependencyPropertyGenerator" Version="1.4.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 7d0a3a1

Please sign in to comment.