onnxruntime/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI
Yifan Li c6156c17bc
[ORT 1.20.1 Release] Cherry pick 1st round (#22785)
### Description
<!-- Describe your changes. -->
Commits to be added:
https://github.com/microsoft/onnxruntime/pulls?q=is%3Apr+label%3Arelease%3A1.20.1+sort%3Aupdated-desc


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

---------

Co-authored-by: Kyle <92152685+idiskyle@users.noreply.github.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Hector Li <hecli@microsoft.com>
Co-authored-by: Adrian Lizarraga <adlizarraga@microsoft.com>
Co-authored-by: amarin16 <91211819+amarin16@users.noreply.github.com>
2024-11-12 14:19:32 -08:00
..
Platforms
Properties
Resources
App.xaml
App.xaml.cs
AppShell.xaml
AppShell.xaml.cs
MainPage.xaml
MainPage.xaml.cs
MauiProgram.cs
Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj [ORT 1.20.1 Release] Cherry pick 1st round (#22785) 2024-11-12 14:19:32 -08:00
ReadMe.md [ORT 1.20.1 Release] Cherry pick 1st round (#22785) 2024-11-12 14:19:32 -08:00
Usings.cs

The MAUI test project can be optionally used with a pre-built ONNX Runtime native nuget package (Microsoft.ML.OnnxRuntime).

To do so, specify the UsePrebuiltNativePackage and CurrentOnnxRuntimeVersion properties when building the project. These can be set via the command-line or as environment variables.

For example:

dotnet build csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI\Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=1.19.2 --source directory_containing_native_nuget_package --source https://api.nuget.org/v3/index.json