Skip to content

Commit

Permalink
Add UsePythonVersion (#21109)
Browse files Browse the repository at this point in the history
### Description
The machine has multiple python installations and none of them is in
PATH. Therefore we should explicitly set python version via this task to
avoid having surprises.

### Motivation and Context
Similar to #21095
  • Loading branch information
snnn authored and baijumeswani committed Jun 20, 2024
1 parent 1cb6839 commit 19992ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ stages:
DisplayName: 'ESRP - Sign C# dlls'
DoEsrp: ${{ parameters.DoEsrp }}

- task: UsePythonVersion@0
displayName: 'Use Python'
inputs:
versionSpec: 3.8

- task: MSBuild@1
displayName: Update projects.assets.json with combined list of all target frameworks
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 19992ae

Please sign in to comment.