From fdc58fdb8ebaa3cc72ce66acb28be5d12288b229 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Wed, 19 Jun 2024 21:31:33 +0000 Subject: [PATCH] Add UsePythonVersion --- .../azure-pipelines/stages/nuget-cuda-packaging-stage.yml | 5 +++++ .../templates/ondevice-training-cpu-packaging-pipeline.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml index 02df814eb2a93..3b0ce98013b49 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml @@ -116,6 +116,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: diff --git a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml index 61cf5de8bdf17..72801ddfda63c 100644 --- a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml @@ -228,6 +228,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: