|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 |
| - <TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks> |
5 |
| - <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> |
| 4 | + <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks> |
| 5 | + <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks> |
6 | 6 | <OutputType>Exe</OutputType>
|
7 | 7 | <RootNamespace>ArcGIS.Samples</RootNamespace>
|
8 | 8 | <UseMaui>true</UseMaui>
|
|
21 | 21 | <ApplicationVersion>1</ApplicationVersion>
|
22 | 22 |
|
23 | 23 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
|
24 |
| - <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion> |
| 24 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">15.0</SupportedOSPlatformVersion> |
25 | 25 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">26.0</SupportedOSPlatformVersion>
|
26 | 26 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.19041.0</SupportedOSPlatformVersion>
|
27 | 27 | <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.19041.0</TargetPlatformMinVersion>
|
28 | 28 | <RootNamespace>ArcGIS</RootNamespace>
|
29 | 29 | <AssemblyName>ArcGIS</AssemblyName>
|
30 | 30 | <DefineConstants>$(DefineConstants);MAUI</DefineConstants>
|
31 |
| - <RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers> |
32 |
| - <RuntimeIdentifier Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' AND '$(Platform)' == 'AnyCPU'">win10-x64</RuntimeIdentifier> |
33 |
| - <AppxPackageDir>..\..\..\output\$(RuntimeIdentifier)\</AppxPackageDir> |
| 31 | + <RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win-x86;win-x64;win-arm64</RuntimeIdentifiers> |
| 32 | + <RuntimeIdentifier Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' AND '$(Platform)' == 'AnyCPU'">win-x64</RuntimeIdentifier> |
| 33 | + <AppxPackageDir>..\..\..\output\$(RuntimeIdentifier)\</AppxPackageDir> |
| 34 | + <NoWarn>$(NoWarn);XC0022;XC0025</NoWarn> <!-- Disable XamlC warnings until addressed --> |
34 | 35 | </PropertyGroup>
|
35 | 36 |
|
36 | 37 | <ItemGroup>
|
|
67 | 68 | </ItemGroup>
|
68 | 69 |
|
69 | 70 | <!-- Exclude Indoor Positioning on desktop platforms -->
|
70 |
| - <ItemGroup Condition="$(TargetFramework.StartsWith('net8.0-maccatalyst')) or $(TargetFramework.StartsWith('net8.0-windows'))"> |
| 71 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst' or $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"> |
71 | 72 | <AndroidResource Remove="Samples\Location\IndoorPositioning\**" />
|
72 | 73 | <Compile Remove="Samples\Location\IndoorPositioning\**" />
|
73 | 74 | <MauiCss Remove="Samples\Location\IndoorPositioning\**" />
|
|
141 | 142 | </ItemGroup>
|
142 | 143 |
|
143 | 144 | <!-- WinUIEx is used to workaround the lack of a WebAuthenticationBroker for WinUI. https://github.com/microsoft/WindowsAppSDK/issues/441 -->
|
144 |
| - <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows10.0.19041.0'"> |
| 145 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"> |
145 | 146 | <PackageReference Include="WinUIEx" />
|
146 | 147 | <PackageReference Include="System.Security.Cryptography.ProtectedData" />
|
147 | 148 | </ItemGroup>
|
148 |
| - <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'"> |
| 149 | + <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"> |
149 | 150 | <PackageReference Include="Xamarin.AndroidX.AppCompat" />
|
150 | 151 | </ItemGroup>
|
151 | 152 | <ItemGroup>
|
|
0 commit comments