|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 |
| - <TargetFrameworks>net6.0-android;net6.0-ios</TargetFrameworks> |
5 |
| - <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks> |
| 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> |
| 6 | + <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> |
| 7 | + <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> --> |
| 8 | + |
| 9 | + <!-- Note for MacCatalyst: |
| 10 | + The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. |
| 11 | + When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>. |
| 12 | + The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; |
| 13 | + either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> |
| 14 | + <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> |
| 15 | + |
6 | 16 | <OutputType>Exe</OutputType>
|
7 | 17 | <RootNamespace>MauiVisionSample</RootNamespace>
|
8 | 18 | <UseMaui>true</UseMaui>
|
|
21 | 31 | <ApplicationVersion>1</ApplicationVersion>
|
22 | 32 |
|
23 | 33 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
|
| 34 | + <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion> |
24 | 35 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
|
25 | 36 | <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
|
26 | 37 | <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
|
| 38 | + <TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> |
27 | 39 | <DefaultLanguage>en</DefaultLanguage>
|
28 | 40 | </PropertyGroup>
|
29 | 41 |
|
30 |
| - <!-- |
31 |
| - Short term workaround for issue with publishing the iOS IPA by manually adding CoreML to the frameworks we link against. |
32 |
| - https://github.com/microsoft/onnxruntime/issues/12420 |
33 |
| - --> |
34 |
| - <Target Name="AddCoreML" Condition="'$(TargetFramework)' == 'net6.0-ios'" AfterTargets="_LoadLinkerOutput" BeforeTargets="_ComputeLinkNativeExecutableInputs"> |
35 |
| - <ItemGroup> |
36 |
| - <_LinkerFrameworks Include="CoreML" /> |
37 |
| - </ItemGroup> |
38 |
| - </Target> |
39 |
| - |
40 | 42 | <ItemGroup>
|
41 | 43 | <!-- App Icon -->
|
42 | 44 | <MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
|
|
55 | 57 | </ItemGroup>
|
56 | 58 |
|
57 | 59 | <ItemGroup>
|
58 |
| - <PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.12.1" /> |
59 |
| - <PackageReference Include="SkiaSharp" Version="2.88.6" /> |
| 60 | + <PackageReference Include="Microsoft.ML.OnnxRuntime" Version="1.19.2" /> |
| 61 | + <PackageReference Include="SkiaSharp" Version="2.88.8" /> |
| 62 | + <PackageReference Include="Microsoft.Maui.Controls" Version="8.0.14" /> |
| 63 | + <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.14" /> |
| 64 | + <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" /> |
| 65 | + <PackageReference Include="Microsoft.ML.OnnxRuntime.Extensions.Dummy" Version="0.12.0" /> |
60 | 66 | </ItemGroup>
|
61 | 67 |
|
62 | 68 | <!--<ItemGroup>
|
|
0 commit comments