From f1ecbf2a725659e526c3c57ec81e44ddeee1b2cd Mon Sep 17 00:00:00 2001 From: carzh Date: Fri, 24 Jan 2025 14:04:31 -0800 Subject: [PATCH] specify publish release + check for workload installation location --- .../Microsoft.ML.OnnxRuntime.Tests.MAUI.csproj | 1 + .../azure-pipelines/nuget/templates/test_android.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) 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..a825295d17 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 @@ -49,6 +49,7 @@ true ..\..\OnnxRuntime.snk + true diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml index 1fe93987b8..7f44e9f6d4 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_android.yml @@ -43,6 +43,17 @@ stages: dotnet workload install maui maui-android android workingDirectory: '$(Build.SourcesDirectory)\csharp' + - task: PowerShell@2 + displayName: List installed workloads + inputs: + targetType: 'inline' + script: | + $output = dotnet --list-sdks + Write-Output $output + $output1 = dotnet workload list + Write-Output $output1 + workingDirectory: '$(Build.SourcesDirectory)\csharp' + - task: PowerShell@2 displayName: Generating MAUI keystore inputs: