practiceApplicaiton.csproj 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFrameworks>net10.0-android</TargetFrameworks>
  4. <TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
  5. <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
  6. <!-- Note for MacCatalyst:
  7. The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
  8. When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
  9. The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
  10. either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
  11. <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
  12. <OutputType>Exe</OutputType>
  13. <RootNamespace>practiceApplicaiton</RootNamespace>
  14. <UseMaui>true</UseMaui>
  15. <SingleProject>true</SingleProject>
  16. <ImplicitUsings>enable</ImplicitUsings>
  17. <Nullable>enable</Nullable>
  18. <!-- Enable XAML source generation for faster build times and improved performance.
  19. This generates C# code from XAML at compile time instead of runtime inflation.
  20. To disable, remove this line.
  21. For individual files, you can override by setting Inflator metadata:
  22. <MauiXaml Update="MyPage.xaml" Inflator="Default" /> (reverts to defaults: Runtime for Debug, XamlC for Release)
  23. <MauiXaml Update="MyPage.xaml" Inflator="Runtime" /> (force runtime inflation) -->
  24. <MauiXamlInflator>SourceGen</MauiXamlInflator>
  25. <!-- Display name -->
  26. <ApplicationTitle>practiceApplicaiton</ApplicationTitle>
  27. <!-- App Identifier -->
  28. <ApplicationId>com.companyname.practiceapplicaiton</ApplicationId>
  29. <!-- Versions -->
  30. <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
  31. <ApplicationVersion>1</ApplicationVersion>
  32. <!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
  33. <WindowsPackageType>None</WindowsPackageType>
  34. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
  35. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion>
  36. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
  37. <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
  38. <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
  39. </PropertyGroup>
  40. <ItemGroup>
  41. <!-- App Icon -->
  42. <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
  43. <!-- Splash Screen -->
  44. <MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
  45. <!-- Images -->
  46. <MauiImage Include="Resources\Images\*" />
  47. <MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
  48. <!-- Custom Fonts -->
  49. <MauiFont Include="Resources\Fonts\*" />
  50. <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
  51. <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  52. </ItemGroup>
  53. <ItemGroup>
  54. <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
  55. <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.0" />
  56. <PackageReference Include="Npgsql" Version="10.0.3" />
  57. </ItemGroup>
  58. </Project>