From cc3168bcbb878382a02b13c3073a1496acafde08 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Wed, 19 Jun 2024 21:09:37 +0800 Subject: [PATCH] Add UsePython task in Nuget_Packaging_CPU stage (#21095) ### Description supplement of https://github.com/microsoft/onnxruntime/pull/21062 ### Motivation and Context --- .../ci_build/github/azure-pipelines/templates/c-api-cpu.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 44e624b397..d7aecae189 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 @@ -413,6 +413,11 @@ stages: DisplayName: 'ESRP - Sign C# dlls' DoEsrp: ${{ parameters.DoEsrp }} + - task: UsePythonVersion@0 + displayName: 'Use Python' + inputs: + versionSpec: 3.8 + - task: MSBuild@1 displayName: 'Build Nuget Packages' inputs: