Files
cfs-Tracker/cfs-tracker.csproj
T
2026-10-11 22:19:34 +02:00

69 lines
3.8 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net10.0-android;net10.0-windows10.0.19041.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>cfs_tracker</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ApplicationTitle>cfs-tracker</ApplicationTitle>
<ApplicationId>com.companyname.cfstracker</ApplicationId>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>3</ApplicationVersion>
<NeutralLanguage>de-DE</NeutralLanguage>
<AppxDefaultResourceQualifiers>Language=de-DE|Contrast=standard|Scale=200|HomeRegion=001|TargetSize=256|LayoutDirection=LTR|DXFeatureLevel=DX9|Configuration=|AlternateForm=</AppxDefaultResourceQualifiers>
<WindowsPackageType>None</WindowsPackageType>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
<SupportedOSPlatformVersion>21.0</SupportedOSPlatformVersion>
<AndroidAapt2LinkExtraArgs>-c de</AndroidAapt2LinkExtraArgs>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
<PropertyGroup>
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</PropertyGroup>
<ItemGroup>
<MauiIcon Include="Resources\AppIcon\appicon.svg" Color="#0B1620" />
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#0B1620" BaseSize="128,128" />
<MauiImage Include="Resources\Images\*" />
<MauiFont Include="Resources\Fonts\*" />
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.1" />
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.50" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.5" />
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.11" />
<PackageReference Include="System.Formats.Nrbf" Version="10.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="SQLitePCLRaw.lib.e_sqlite3.android" Version="2.1.11" />
</ItemGroup>
<ItemGroup Condition="$([System.String]::Copy('$(TargetFramework)').Contains('-windows'))">
<PackageReference Include="System.Drawing.Common" Version="10.0.5" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
</ItemGroup>
<Target Name="CopyAndroidBundleToPublishFolder"
AfterTargets="Publish;SignAndroidPackage"
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
<PropertyGroup>
<_AndroidSignedBundle>$(OutputPath)$(ApplicationId)-Signed.aab</_AndroidSignedBundle>
<_AndroidUnsignedBundle>$(OutputPath)$(ApplicationId).aab</_AndroidUnsignedBundle>
</PropertyGroup>
<ItemGroup>
<_AndroidBundleToPublish Include="$(_AndroidSignedBundle)" Condition="Exists('$(_AndroidSignedBundle)')" />
<_AndroidBundleToPublish Include="$(_AndroidUnsignedBundle)" Condition="!Exists('$(_AndroidSignedBundle)') and Exists('$(_AndroidUnsignedBundle)')" />
</ItemGroup>
<Copy SourceFiles="@(_AndroidBundleToPublish)"
DestinationFolder="$(PublishDir)"
SkipUnchangedFiles="true"
Condition="'@(_AndroidBundleToPublish)' != ''" />
</Target>
</Project>