Separate iOS and macCatalyst builds into distinct steps for better error isolation. Add README.md to NuGet package for documentation visibility on NuGet.org.
59 lines
3.1 KiB
XML
59 lines
3.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net10.0-android</TargetFrameworks>
|
|
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
|
|
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
|
|
|
|
<UseMaui>true</UseMaui>
|
|
<SingleProject>true</SingleProject>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
|
|
<!-- Enable XAML source generation for faster build times and improved performance.
|
|
This generates C# code from XAML at compile time instead of runtime inflation.
|
|
To disable, remove this line.
|
|
For individual files, you can override by setting Inflator metadata:
|
|
<MauiXaml Update="MyPage.xaml" Inflator="Default" /> (reverts to defaults: Runtime for Debug, XamlC for Release)
|
|
<MauiXaml Update="MyPage.xaml" Inflator="Runtime" /> (force runtime inflation) -->
|
|
<MauiXamlInflator>SourceGen</MauiXamlInflator>
|
|
|
|
<!-- NuGet Package Metadata -->
|
|
<PackageId>BuyMeCofee.Maui</PackageId>
|
|
<Title>Buy Me a Coffee MAUI Controls</Title>
|
|
<Description>Branded Buy Me a Coffee controls for .NET MAUI — button, support widget, and QR code with official BMC branding.</Description>
|
|
<Authors>David H Friedel Jr</Authors>
|
|
<Company>MarketAlly</Company>
|
|
<Copyright>Copyright © 2026 MarketAlly LLC</Copyright>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageProjectUrl>https://git.marketally.com/misc/bmc.maui</PackageProjectUrl>
|
|
<RepositoryUrl>https://git.marketally.com/misc/bmc.maui</RepositoryUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<PackageTags>maui;buymeacoffee;bmc;donation;tip;controls</PackageTags>
|
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
|
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
|
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</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>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
|
|
<PackageReference Include="QRCoder" Version="1.6.0" />
|
|
<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="3.116.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Resources\Images\bmc_logo.png"
|
|
LogicalName="BuyMeCofee.Maui.Resources.Images.bmc_logo.png" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="..\README.md" Pack="true" PackagePath="" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|