Skip to content

Commit

Permalink
Add support for TFM override in MAUI (#523)
Browse files Browse the repository at this point in the history
* Add support for TFM override in MAUI
  • Loading branch information
dotMorten authored Sep 22, 2023
1 parent 19e537a commit a0408b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
<DotNetTargetFramework>net472</DotNetTargetFramework>
<UWPTargetFramework>uap10.0.$(WindowsSDKTargetBuild)</UWPTargetFramework>
<NetWindowsTargetFramework Condition="'$(NetWindowsTargetFramework)'==''">net6.0-windows10.0.$(WindowsSDKTargetBuild).0</NetWindowsTargetFramework>
<NetMauiWindowsTargetFramework Condition="'$(NetMauiWindowsTargetFramework)'==''">net7.0-windows10.0.$(WindowsSDKTargetBuild).0</NetMauiWindowsTargetFramework>
<NetAndroidTargetFramework Condition="'$(NetAndroidTargetFramework)'==''">net7.0-android33.0</NetAndroidTargetFramework>
<NetCatalystTargetFramework Condition="'$(NetCatalystTargetFramework)'==''">net7.0-maccatalyst16.1</NetCatalystTargetFramework>
<NetiOSTargetFramework Condition="'$(NetiOSTargetFramework)'==''">net7.0-ios16.1</NetiOSTargetFramework>
<NETMauiTarget Condition="'$(NETMauiTarget)'==''">net7.0</NETMauiTarget>
<NetMauiWindowsTargetFramework Condition="'$(NetMauiWindowsTargetFramework)'==''">$(NETMauiTarget)-windows10.0.$(WindowsSDKTargetBuild).0</NetMauiWindowsTargetFramework>
<NetAndroidTargetFramework Condition="'$(NetAndroidTargetFramework)'==''">$(NETMauiTarget)-android33.0</NetAndroidTargetFramework>
<NetCatalystTargetFramework Condition="'$(NetCatalystTargetFramework)'==''">$(NETMauiTarget)-maccatalyst16.1</NetCatalystTargetFramework>
<NetiOSTargetFramework Condition="'$(NetiOSTargetFramework)'==''">$(NETMauiTarget)-ios16.1</NetiOSTargetFramework>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>

<!--Output paths-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;$(NetAndroidTargetFramework);$(NetiOSTargetFramework);$(NetCatalystTargetFramework)</TargetFrameworks>
<TargetFrameworks>$(NETMauiTarget);$(NetAndroidTargetFramework);$(NetiOSTargetFramework);$(NetCatalystTargetFramework)</TargetFrameworks>
<Description>ArcGIS Maps SDK for .NET controls and utilities for .NET MAUI apps including .NET for Android, .NET for iOS, .NET for macOS, or Windows UI 3 (WinUI 3)</Description>
<PackageTags>ArcGIS Cartography Geo Geographic Geography Geolocation Geospatial GIS Latitude Location Longitude Map Mapping Maps Places Spatial 3D WinUI Android iOS Mac Catalyst MacCatalyst Windows UI 3 toolkit</PackageTags>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);$(NetMauiWindowsTargetFramework)</TargetFrameworks>
Expand Down

0 comments on commit a0408b3

Please sign in to comment.