From e6abde022e893d0833fed15d58edb9a913a86273 Mon Sep 17 00:00:00 2001 From: carzh Date: Tue, 28 Jan 2025 14:42:42 -0800 Subject: [PATCH 01/10] Reapply "[Mobile] Add BrowserStack Android MAUI Test (#23383)" (#23474) This reverts commit d00ae325cea6b7032493c4459061c53c5a2b43d9. --- .../.config/dotnet-tools.json | 13 ++ .../BrowserStackTest.cs | 68 +++++++ ...xRuntime.Tests.BrowserStack.Android.csproj | 22 +++ .../README.md | 48 +++++ .../RunAllTest.cs | 123 ++++++++++++ .../browserstack.yml | 13 ++ ...Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 186 +++++++++--------- 7 files changed, 383 insertions(+), 90 deletions(-) create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/.config/dotnet-tools.json create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/BrowserStackTest.cs create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android.csproj create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/README.md create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/RunAllTest.cs create mode 100644 csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/browserstack.yml diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/.config/dotnet-tools.json b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/.config/dotnet-tools.json new file mode 100644 index 0000000000..67d39c423d --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/.config/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "browserstack-sdk": { + "version": "1.16.13", + "commands": [ + "browserstack-sdk" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/BrowserStackTest.cs b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/BrowserStackTest.cs new file mode 100644 index 0000000000..84377d65d1 --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/BrowserStackTest.cs @@ -0,0 +1,68 @@ +using Newtonsoft.Json; +using NUnit.Framework.Interfaces; +using NUnit.Framework; +using OpenQA.Selenium; +using OpenQA.Selenium.Appium; +using OpenQA.Selenium.Appium.Android; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android +{ + public class BrowserStackTest + { + public AndroidDriver driver; + public BrowserStackTest() + {} + + [SetUp] + public void Init() + { + var androidOptions = new AppiumOptions { + AutomationName = "UIAutomator2", + PlatformName = "Android", + }; + + driver = new AndroidDriver(new Uri("http://127.0.0.1:4723/wd/hub"), androidOptions); + } + + /// + /// Passes the correct test status to BrowserStack and ensures the driver quits. + /// + [TearDown] + public void Dispose() + { + try + { + // According to + // https://www.browserstack.com/docs/app-automate/appium/set-up-tests/mark-tests-as-pass-fail + // BrowserStack doesn't know whether test assertions have passed or failed. Below handles + // passing the test status to BrowserStack along with any relevant information. + if (TestContext.CurrentContext.Result.Outcome.Status == TestStatus.Failed) + { + String failureMessage = TestContext.CurrentContext.Result.Message; + String jsonToSendFailure = + String.Format("browserstack_executor: {\"action\": \"setSessionStatus\", \"arguments\": " + + "{\"status\":\"failed\", \"reason\": {0}}}", + JsonConvert.ToString(failureMessage)); + + ((IJavaScriptExecutor)driver).ExecuteScript(jsonToSendFailure); + } + else + { + ((IJavaScriptExecutor)driver) + .ExecuteScript("browserstack_executor: {\"action\": \"setSessionStatus\", \"arguments\": " + + "{\"status\":\"passed\", \"reason\": \"\"}}"); + } + } + finally + { + // will run even if exception is thrown by previous block + ((AndroidDriver)driver).Quit(); + } + } + } +} diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android.csproj new file mode 100644 index 0000000000..9b9028d30c --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android.csproj @@ -0,0 +1,22 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + + + diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/README.md b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/README.md new file mode 100644 index 0000000000..9c4e2307d8 --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/README.md @@ -0,0 +1,48 @@ +# BrowserStack Android test +This project will run the Android MAUI tests on BrowserStack, which allows you to run automated tests on a variety of mobile devices. + +## Context +Microsoft.ML.OnnxRuntime.Tests.MAUI uses DeviceRunners.VisualRunners to allow running the unit tests (found in Microsoft.ML.OnnxRuntime.Tests.Common) across multiple devices. DeviceRunners.VisualRunners provides a simple UI with a button that will run the unit tests and a panel with the unit test results. + +In order to automate the process of running the unit tests across mobile devices, Appium is used for UI testing orchestration (it provides a way to interact with the UI), and BrowserStack automatically runs these Appium tests across different mobile devices. + +This project does not include the capability to start an Appium server locally or attach to a local emulator or device. + +## Build & run instructions +### Requirements +* A BrowserStack account with access to App Automate + * You can set BrowserStack credentials as environment variables as shown [here](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp/nunit/integrate-your-tests#CLI) +* ONNXRuntime NuGet package + 1. You can either download the [stable NuGet package](https://www.nuget.org/packages/Microsoft.ML.OnnxRuntime) then follow the instructions from [NativeLibraryInclude.props file](../Microsoft.ML.OnnxRuntime.Tests.Common/NativeLibraryInclude.props) to use the downloaded .nupkg file + 2. Or follow the [build instructions](https://onnxruntime.ai/docs/build/android.html) to build the Android package locally +* The dotnet workloads for maui and maui-android, which will not always automatically install correctly + 1. `dotnet workload install maui` + 2. `dotnet workload install maui-android` +* [Appium](https://appium.io/docs/en/latest/quickstart/) and the [UiAutomator2 driver](https://appium.io/docs/en/latest/quickstart/uiauto2-driver/) + +### Run instructions +1. Build the Microsoft.ML.OnnxRuntime.Tests.MAUI project into a signed APK. + 1. Run the following: `dotnet publish -c Release -f net8.0-android` in the Microsoft.ML.OnnxRuntime.Tests.MAUI directory. + 2. Search for the APK files generated. They should be located in `bin\Release\net8.0-android\publish`. + 3. If they're in a different location, edit the `browserstack.yml` file to target the path to the signed APK. +2. Ensure you've set the BrowserStack credentials as environment variables. +3. Run the following in the Microsoft.ML.OnnxRuntime.Tests.Android.BrowserStack directory: `dotnet test` +4. Navigate to the [BrowserStack App Automate dashboard](https://app-automate.browserstack.com/dashboard/v2/builds) to see your test running! + +## Troubleshooting & Resources +### BrowserStack Resources +- [Configuration docs](https://www.browserstack.com/docs/app-automate/appium/sdk-params#test-context) for browserstack.yml +- [Configuration generator](https://www.browserstack.com/docs/app-automate/capabilities) for browserstack.yml +- [Integration guide](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp/nunit/integrate-your-tests#CLI) + +### Troubleshooting +- Issues building the MAUI app: + - Make sure that the maui and maui-android workloads are installed correctly by running `dotnet workload list` + - If you believe the issues are workload related, you can also try running `dotnet workload repair` (this has personally never worked for me) + - Try running `dotnet clean`. However, this does not fully remove all the previous intermediaries. If you're still running into the errors, manually deleting the bin and obj folders can sometimes resolve them. +- After building the MAUI app, try installing on an emulator and clicking the "Run All" button to ensure that everything is working. (If you are missing the ONNXRuntime package, it will not show up as an error until you click "Run All".) + - Running the MAUI app from Visual Studio will not replicate running it through BrowserStack. Instead, use `adb install [path to signed apk]` to install the app then use the emulator to launch the app. +- Issues with the Android.BrowserStack test app: there is an Appium Doctor package on npm -- run `npm install @appium/doctor --location=global` then `appium-doctor --android` and follow the directed instructions. Some errors with Appium on Android will not appear until runtime. +- Connection refused by Appium server: this can happen if you already have an Appium server running locally. If you do, stop the Appium server then try `dotnet test` again. +- App is crashing on BrowserStack or it emits an error that it cannot run this APK file: make sure that you are passing in the correct signed APK from the publish folder. +- It appears that a test runs on CLI but a build is not launched on BrowserStack: this happens when the BrowserStack Test Adapter cannot find the browserstack.yml file (which has to be named "browserstack.yml" -- do not be tricked by BrowserStack's article on custom-named configuration files) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/RunAllTest.cs b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/RunAllTest.cs new file mode 100644 index 0000000000..5db3dc9957 --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/RunAllTest.cs @@ -0,0 +1,123 @@ +using OpenQA.Selenium.Appium; +using OpenQA.Selenium; +using NUnit.Framework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android +{ + /// + /// This class contains a single test: RunAll, which interacts with the UI from + /// https://github.com/mattleibow/DeviceRunners/tree/main by clicking the "Run All" button and checking the number + /// of passed and failed tests. + /// + /// It searches for elements on the page using Appium's WebDriver. These searches use the XPath attributes. + /// + /// Launching the MAUI test app in Appium Inspector will allow you to see the exact XPath attributes for each + /// element. + /// + [TestFixture] + public class RunAllTest : BrowserStackTest + { + public AppiumElement FindAppiumElement(String xpathQuery, String text) + { + IReadOnlyCollection appiumElements = driver.FindElements(By.XPath(xpathQuery)); + + foreach (var element in appiumElements) + { + if (element.Text.Contains(text)) + { + return element; + } + } + // was unable to find given element + throw new Exception(String.Format("Could not find {0}: {1} on the page.", xpathQuery, text)); + } + + public AppiumElement FindAppiumElementThenClick(String xpathQuery, String text) + { + AppiumElement appiumElement = FindAppiumElement(xpathQuery, text); + appiumElement.Click(); + return appiumElement; + } + + public (int, int) GetPassFailCount() + { + int numPassed = -1; + int numFailed = -1; + + IReadOnlyCollection labelElements = + driver.FindElements(By.XPath("//android.widget.TextView")); + + for (int i = 0; i < labelElements.Count; i++) + { + AppiumElement element = labelElements.ElementAt(i); + + if (element.Text.Equals("✔")) + { + i++; + numPassed = int.Parse(labelElements.ElementAt(i).Text); + } + + if (element.Text.Equals("⛔")) + { + i++; + numFailed = int.Parse(labelElements.ElementAt(i).Text); + break; + } + } + + Assert.That(numPassed, Is.GreaterThanOrEqualTo(0), "Could not find number passed label."); + Assert.That(numFailed, Is.GreaterThanOrEqualTo(0), "Could not find number failed label."); + + return (numPassed, numFailed); + } + + [Test] + public async Task ClickRunAllTest() + { + // XAML for the main page: + // https://github.com/mattleibow/DeviceRunners/blob/cba7644e07b305ba64dc930b01c3eee55ef2b93d/src/DeviceRunners.VisualRunners.Maui/App/Pages/HomePage.xaml + AppiumElement runAllButton = FindAppiumElementThenClick("//android.widget.Button", "Run All"); + + while (!runAllButton.Enabled) + { + // waiting for unit tests to execute + await Task.Delay(500); + } + + var (numPassed, numFailed) = GetPassFailCount(); + + if (numFailed == 0) + { + return; + } + + // click into test results if tests have failed + FindAppiumElementThenClick("//android.widget.TextView", "⛔"); + await Task.Delay(500); + + // Brings you to the test assembly page + // XAML for test assembly page: + // https://github.com/mattleibow/DeviceRunners/blob/cba7644e07b305ba64dc930b01c3eee55ef2b93d/src/DeviceRunners.VisualRunners.Maui/App/Pages/TestAssemblyPage.xaml + FindAppiumElementThenClick("//android.widget.EditText", "All"); + await Task.Delay(100); + FindAppiumElementThenClick("//android.widget.TextView", "Failed"); + await Task.Delay(500); + + StringBuilder sb = new StringBuilder(); + sb.AppendLine("PASSED TESTS: " + numPassed + " | FAILED TESTS: " + numFailed); + + IReadOnlyCollection textResults = driver.FindElements(By.XPath("//android.widget.TextView")); + foreach (var element in textResults) + { + sb.AppendLine(element.Text); + } + + Assert.That(numFailed, Is.EqualTo(0), sb.ToString()); + } + } +} diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/browserstack.yml b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/browserstack.yml new file mode 100644 index 0000000000..9efbc9fc6a --- /dev/null +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.BrowserStack.Android/browserstack.yml @@ -0,0 +1,13 @@ +app: ..\Microsoft.ML.OnnxRuntime.Tests.MAUI\bin\Release\net8.0-android\publish\ORT.CSharp.Tests.MAUI-Signed.apk +platforms: + - platformName: android + deviceName: Samsung Galaxy S22 Ultra + platformVersion: 12.0 +browserstackLocal: true +buildName: ORT android test +buildIdentifier: ${BUILD_NUMBER} +projectName: ORT-UITests +debug: true +networkLogs: false +testContextOptions: + skipSessionStatus: true \ No newline at end of file diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index e07448daee..652da8899f 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -1,125 +1,131 @@  - - $(ProjectDir)..\..\.. - + + $(ProjectDir)..\..\.. + - + - - - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - - + - Exe - Microsoft.ML.OnnxRuntime.Tests.MAUI - true - true - enable - enable - true - - 8002 + Microsoft.ML.OnnxRuntime.Tests.MAUI + true + true + enable + enable + true + + 8002 - - $(DefineConstants);INCLUDE_FAILING_TESTS - $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL - $(DefineConstants);MODE_XHARNESS + + $(DefineConstants);INCLUDE_FAILING_TESTS + $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL + $(DefineConstants);MODE_XHARNESS - - Microsoft.ML.OnnxRuntime.Tests.MAUI + + Microsoft.ML.OnnxRuntime.Tests.MAUI - - ORT.CSharp.Tests.MAUI + + ORT.CSharp.Tests.MAUI - - 1.0 - 1 + + 1.0 + 1 - 15.0 - 13.1 - 30.0 - 10.0.17763.0 - 10.0.17763.0 + 15.0 + 13.1 + 30.0 + 10.0.17763.0 + 10.0.17763.0 - true - ..\..\OnnxRuntime.snk - + true + ..\..\OnnxRuntime.snk + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - InferenceTest.cs - - - OrtIoBindingAllocationTest.cs - - - TensorTests.cs - - + + + InferenceTest.cs + + + OrtIoBindingAllocationTest.cs + + + TensorTests.cs + + - - + - - - + - - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + - - - <_VisualStudioTestRunnerFiles + + + <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> - - - + + + + + + false + en + + From 0dd42e9710fc78886dc8cfa1d17f8d052b8669d4 Mon Sep 17 00:00:00 2001 From: carzh Date: Wed, 29 Jan 2025 15:00:29 -0800 Subject: [PATCH 02/10] maui csproj that builds into apk successfully --- ...Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index 652da8899f..638e4a95fc 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -17,6 +17,7 @@ either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> + Exe Microsoft.ML.OnnxRuntime.Tests.MAUI true true @@ -84,15 +85,9 @@ - - - + + + @@ -116,16 +111,22 @@ - <_VisualStudioTestRunnerFiles - Include="@(PackagingOutputs)" - Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> + <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> + + + + false en + + apk + + From 4011a108e05af9e3f604c61cc33690855e88c4f7 Mon Sep 17 00:00:00 2001 From: carzh Date: Wed, 29 Jan 2025 15:13:25 -0800 Subject: [PATCH 03/10] attempt to fix nuget pipeline failure --- tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml index 1ab4fd2a8e..b34ff649fb 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml @@ -446,7 +446,7 @@ stages: solution: '$(Build.SourcesDirectory)\csharp\OnnxRuntime.CSharp.sln' platform: 'Any CPU' configuration: RelWithDebInfo - msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion)' + msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion) -target:Microsoft.ML.OnnxRuntime;Microsoft.ML.OnnxRuntime.PerfTool' workingDirectory: '$(Build.SourcesDirectory)\csharp' - ${{ if eq(parameters.DoEsrp, true) }}: From 0783bb18b17c53146b68ab1a51f8c4e3dd7a102e Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 11:29:51 -0800 Subject: [PATCH 04/10] target only ort for building c# bindings --- tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml index b34ff649fb..4ccf94b00e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml @@ -446,7 +446,7 @@ stages: solution: '$(Build.SourcesDirectory)\csharp\OnnxRuntime.CSharp.sln' platform: 'Any CPU' configuration: RelWithDebInfo - msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion) -target:Microsoft.ML.OnnxRuntime;Microsoft.ML.OnnxRuntime.PerfTool' + msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion) -target:Microsoft.ML.OnnxRuntime' workingDirectory: '$(Build.SourcesDirectory)\csharp' - ${{ if eq(parameters.DoEsrp, true) }}: From 5a5fe4ba4ff8310f9ee50fdfb0b2daec237de37a Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 17:52:22 -0800 Subject: [PATCH 05/10] removed test projects from sln and updated pipeline yml --- csharp/OnnxRuntime.CSharp.sln | 7 ------- .../github/azure-pipelines/templates/c-api-cpu.yml | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/csharp/OnnxRuntime.CSharp.sln b/csharp/OnnxRuntime.CSharp.sln index 4556be2aa2..ed87fcb9e1 100644 --- a/csharp/OnnxRuntime.CSharp.sln +++ b/csharp/OnnxRuntime.CSharp.sln @@ -89,7 +89,6 @@ Global {2E295930-42B1-422D-925D-F07947AD8EFF}.Release|x86.ActiveCfg = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.Release|x86.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU - {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = Release|Any CPU @@ -121,7 +120,6 @@ Global {037242E4-7C79-401F-A19C-6824B1BB356F}.Release|x86.Build.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.Release|x86.Deploy.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU - {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.Deploy.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU @@ -149,7 +147,6 @@ Global {1AA14958-9246-4163-9403-F650E65ADCBC}.Release|x86.ActiveCfg = Release|x86 {1AA14958-9246-4163-9403-F650E65ADCBC}.Release|x86.Build.0 = Release|x86 {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU - {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -197,7 +194,6 @@ Global {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.Release|x86.ActiveCfg = Release|x86 {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.Release|x86.Build.0 = Release|x86 {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU - {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -221,7 +217,6 @@ Global {50173D13-DF29-42E7-A30B-8B12D36C77B1}.Release|x86.ActiveCfg = Release|x86 {50173D13-DF29-42E7-A30B-8B12D36C77B1}.Release|x86.Build.0 = Release|x86 {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU - {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -245,7 +240,6 @@ Global {30431891-3929-4394-8049-75055B92315F}.Release|x86.ActiveCfg = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.Release|x86.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU - {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = Release|Any CPU @@ -301,7 +295,6 @@ Global {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.Release|x86.Build.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.Release|x86.Deploy.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU - {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.Deploy.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml index 4ccf94b00e..1ab4fd2a8e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml @@ -446,7 +446,7 @@ stages: solution: '$(Build.SourcesDirectory)\csharp\OnnxRuntime.CSharp.sln' platform: 'Any CPU' configuration: RelWithDebInfo - msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion) -target:Microsoft.ML.OnnxRuntime' + msbuildArguments: '-p:OnnxRuntimeBuildDirectory="$(Build.BinariesDirectory)" -p:OrtPackageId=$(OrtPackageId) -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) -p:PackageVersion=$(OnnxRuntimeVersion)' workingDirectory: '$(Build.SourcesDirectory)\csharp' - ${{ if eq(parameters.DoEsrp, true) }}: From 70e3a2362a8e1269298570291400f24492a612b5 Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 22:31:35 -0800 Subject: [PATCH 06/10] format --- ...Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 207 +++++++++--------- 1 file changed, 104 insertions(+), 103 deletions(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index 638e4a95fc..d23c8f1f52 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -1,132 +1,133 @@ - - - $(ProjectDir)..\..\.. - + + + $(ProjectDir)..\..\.. - + - - - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 + net8.0 - + android; +net8.0 - ios; +net8.0 - maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - + - Exe - Microsoft.ML.OnnxRuntime.Tests.MAUI - true - true - enable - enable - true - - 8002 + Exe + Microsoft.ML.OnnxRuntime.Tests.MAUI + true + true + enable + enable + true < !--some of the helper packages don't have strong named assemblies. --> < NoWarn > 8002 < / NoWarn > - - $(DefineConstants);INCLUDE_FAILING_TESTS - $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL - $(DefineConstants);MODE_XHARNESS + + $(DefineConstants); +INCLUDE_FAILING_TESTS + $(DefineConstants); +MODE_NON_INTERACTIVE_VISUAL + $(DefineConstants); +MODE_XHARNESS - - Microsoft.ML.OnnxRuntime.Tests.MAUI + + Microsoft.ML.OnnxRuntime.Tests.MAUI - - ORT.CSharp.Tests.MAUI + + ORT.CSharp.Tests.MAUI - - 1.0 - 1 + < ApplicationDisplayVersion > 1.0 < / ApplicationDisplayVersion > + < ApplicationVersion > 1 < / ApplicationVersion > - 15.0 - 13.1 - 30.0 - 10.0.17763.0 - 10.0.17763.0 + < SupportedOSPlatformVersion Condition = "'$(IsIOSTarget)' == 'true'" > 15.0 < / SupportedOSPlatformVersion > + < SupportedOSPlatformVersion Condition = "'$(IsMacCatalystTarget)' == 'true'" > 13.1 < / SupportedOSPlatformVersion > + < SupportedOSPlatformVersion Condition = "'$(IsAndroidTarget)' == 'true'" > 30.0 < / SupportedOSPlatformVersion > + < SupportedOSPlatformVersion Condition = "'$(IsWindowsTarget)' == 'true'" > 10.0.17763.0 < / SupportedOSPlatformVersion > + < TargetPlatformMinVersion Condition = "'$(IsWindowsTarget)' == 'true'" > 10.0.17763.0 < / TargetPlatformMinVersion > - true - ..\..\OnnxRuntime.snk - + true + ..\..\OnnxRuntime.snk + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - InferenceTest.cs - - - OrtIoBindingAllocationTest.cs - - - TensorTests.cs - - + + + + InferenceTest.cs + + + OrtIoBindingAllocationTest.cs + + + TensorTests.cs + + - - - - - + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + - - - <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> - - - + + + <_VisualStudioTestRunnerFiles Include = "@(PackagingOutputs)" Condition = "$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> + + + - - - + + + - - false - en - + + false + en + - - apk - + + apk + - + From 773cbb6eb0001223313ff58338c40c4966d82627 Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 22:32:51 -0800 Subject: [PATCH 07/10] Revert "format" This reverts commit 70e3a2362a8e1269298570291400f24492a612b5. --- ...Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 207 +++++++++--------- 1 file changed, 103 insertions(+), 104 deletions(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index d23c8f1f52..638e4a95fc 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -1,133 +1,132 @@ - - - $(ProjectDir)..\..\.. + + + $(ProjectDir)..\..\.. + - + - net8.0 - - android; -net8.0 - ios; -net8.0 - maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - + - Exe - Microsoft.ML.OnnxRuntime.Tests.MAUI - true - true - enable - enable - true < !--some of the helper packages don't have strong named assemblies. --> < NoWarn > 8002 < / NoWarn > + Exe + Microsoft.ML.OnnxRuntime.Tests.MAUI + true + true + enable + enable + true + + 8002 - - $(DefineConstants); -INCLUDE_FAILING_TESTS - $(DefineConstants); -MODE_NON_INTERACTIVE_VISUAL - $(DefineConstants); -MODE_XHARNESS + + $(DefineConstants);INCLUDE_FAILING_TESTS + $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL + $(DefineConstants);MODE_XHARNESS - - Microsoft.ML.OnnxRuntime.Tests.MAUI + + Microsoft.ML.OnnxRuntime.Tests.MAUI - - ORT.CSharp.Tests.MAUI + + ORT.CSharp.Tests.MAUI - < ApplicationDisplayVersion > 1.0 < / ApplicationDisplayVersion > - < ApplicationVersion > 1 < / ApplicationVersion > + + 1.0 + 1 - < SupportedOSPlatformVersion Condition = "'$(IsIOSTarget)' == 'true'" > 15.0 < / SupportedOSPlatformVersion > - < SupportedOSPlatformVersion Condition = "'$(IsMacCatalystTarget)' == 'true'" > 13.1 < / SupportedOSPlatformVersion > - < SupportedOSPlatformVersion Condition = "'$(IsAndroidTarget)' == 'true'" > 30.0 < / SupportedOSPlatformVersion > - < SupportedOSPlatformVersion Condition = "'$(IsWindowsTarget)' == 'true'" > 10.0.17763.0 < / SupportedOSPlatformVersion > - < TargetPlatformMinVersion Condition = "'$(IsWindowsTarget)' == 'true'" > 10.0.17763.0 < / TargetPlatformMinVersion > + 15.0 + 13.1 + 30.0 + 10.0.17763.0 + 10.0.17763.0 - true - ..\..\OnnxRuntime.snk - + true + ..\..\OnnxRuntime.snk + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - InferenceTest.cs - - - OrtIoBindingAllocationTest.cs - - - TensorTests.cs - - + + + + InferenceTest.cs + + + OrtIoBindingAllocationTest.cs + + + TensorTests.cs + + - - - - - + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + - - - <_VisualStudioTestRunnerFiles Include = "@(PackagingOutputs)" Condition = "$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> - - - + + + <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> + + + - - - + + + - - false - en - + + false + en + - - apk - + + apk + - + From 657c60d7944249c7ee5b45a68462fe121a9293fc Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 22:34:03 -0800 Subject: [PATCH 08/10] format again.. --- .../Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index 638e4a95fc..351385b442 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -126,7 +126,7 @@ - apk + apk From 7a51dd5de9f7450089572a60a9e7e43c7e117c1e Mon Sep 17 00:00:00 2001 From: carzh Date: Thu, 30 Jan 2025 22:38:38 -0800 Subject: [PATCH 09/10] fixed format again --- ...Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 212 +++++++++--------- 1 file changed, 106 insertions(+), 106 deletions(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index 351385b442..e25b4a81a7 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -1,132 +1,132 @@  - - $(ProjectDir)..\..\.. - + + $(ProjectDir)..\..\.. + - + - - - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - - + + - Exe - Microsoft.ML.OnnxRuntime.Tests.MAUI - true - true - enable - enable - true - - 8002 + Exe + Microsoft.ML.OnnxRuntime.Tests.MAUI + true + true + enable + enable + true + + 8002 - - $(DefineConstants);INCLUDE_FAILING_TESTS - $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL - $(DefineConstants);MODE_XHARNESS + + $(DefineConstants);INCLUDE_FAILING_TESTS + $(DefineConstants);MODE_NON_INTERACTIVE_VISUAL + $(DefineConstants);MODE_XHARNESS - - Microsoft.ML.OnnxRuntime.Tests.MAUI + + Microsoft.ML.OnnxRuntime.Tests.MAUI - - ORT.CSharp.Tests.MAUI + + ORT.CSharp.Tests.MAUI - - 1.0 - 1 + + 1.0 + 1 - 15.0 - 13.1 - 30.0 - 10.0.17763.0 - 10.0.17763.0 + 15.0 + 13.1 + 30.0 + 10.0.17763.0 + 10.0.17763.0 - true - ..\..\OnnxRuntime.snk - + true + ..\..\OnnxRuntime.snk + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - InferenceTest.cs - - - OrtIoBindingAllocationTest.cs - - - TensorTests.cs - - + + + + InferenceTest.cs + + + OrtIoBindingAllocationTest.cs + + + TensorTests.cs + + - - - - - + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + - - - <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> - - - + + + <_VisualStudioTestRunnerFiles Include="@(PackagingOutputs)" Condition="$([System.String]::Copy('%(PackagingOutputs.FullPath)').Contains('xunit.runner.visualstudio'))" /> + + + - - - + + + - - false - en - + + false + en + - - apk - + + apk + From 573e284838517441773e0042da0947bd4af2d31b Mon Sep 17 00:00:00 2001 From: carzh Date: Mon, 3 Feb 2025 10:58:12 -0800 Subject: [PATCH 10/10] removed modifications from sln and commented out the ios and maccatylst targets --- csharp/OnnxRuntime.CSharp.sln | 7 +++++++ .../Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/csharp/OnnxRuntime.CSharp.sln b/csharp/OnnxRuntime.CSharp.sln index ed87fcb9e1..4556be2aa2 100644 --- a/csharp/OnnxRuntime.CSharp.sln +++ b/csharp/OnnxRuntime.CSharp.sln @@ -89,6 +89,7 @@ Global {2E295930-42B1-422D-925D-F07947AD8EFF}.Release|x86.ActiveCfg = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.Release|x86.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU + {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU {2E295930-42B1-422D-925D-F07947AD8EFF}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = Release|Any CPU @@ -120,6 +121,7 @@ Global {037242E4-7C79-401F-A19C-6824B1BB356F}.Release|x86.Build.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.Release|x86.Deploy.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU + {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|Any CPU.Deploy.0 = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {037242E4-7C79-401F-A19C-6824B1BB356F}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU @@ -147,6 +149,7 @@ Global {1AA14958-9246-4163-9403-F650E65ADCBC}.Release|x86.ActiveCfg = Release|x86 {1AA14958-9246-4163-9403-F650E65ADCBC}.Release|x86.Build.0 = Release|x86 {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU + {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {1AA14958-9246-4163-9403-F650E65ADCBC}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -194,6 +197,7 @@ Global {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.Release|x86.ActiveCfg = Release|x86 {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.Release|x86.Build.0 = Release|x86 {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU + {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {04FA49F0-AA23-4EE5-B455-6E12FFAD29E6}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -217,6 +221,7 @@ Global {50173D13-DF29-42E7-A30B-8B12D36C77B1}.Release|x86.ActiveCfg = Release|x86 {50173D13-DF29-42E7-A30B-8B12D36C77B1}.Release|x86.Build.0 = Release|x86 {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|Any CPU.ActiveCfg = RelWithDebInfo|Any CPU + {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|Any CPU.Build.0 = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhone.ActiveCfg = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhone.Build.0 = RelWithDebInfo|Any CPU {50173D13-DF29-42E7-A30B-8B12D36C77B1}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = RelWithDebInfo|Any CPU @@ -240,6 +245,7 @@ Global {30431891-3929-4394-8049-75055B92315F}.Release|x86.ActiveCfg = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.Release|x86.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU + {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU {30431891-3929-4394-8049-75055B92315F}.RelWithDebInfo|iPhoneSimulator.ActiveCfg = Release|Any CPU @@ -295,6 +301,7 @@ Global {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.Release|x86.Build.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.Release|x86.Deploy.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU + {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|Any CPU.Deploy.0 = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|iPhone.ActiveCfg = Release|Any CPU {85E4F8C9-366A-4769-8DBC-ABCDE37FD460}.RelWithDebInfo|iPhone.Build.0 = Release|Any CPU diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj index e25b4a81a7..346f88e856 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests.MAUI/Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj @@ -7,7 +7,11 @@ - net8.0-android;net8.0-ios;net8.0-maccatalyst + + + + net8.0-android $(TargetFrameworks);net8.0-windows10.0.19041.0