Skip to content

Commit 14e0ad7

Browse files
authored
Add PackageVersion parameter to NuGet packaging stage (microsoft#25315)
Fix: `Microsoft.ML.OnnxRuntime.Managed.nupkg` artifact from GPU pipeline does not have package version. ![image](https://github.com/user-attachments/assets/4a6135ab-4774-4aa6-aeb1-d5b06948ba8f)
1 parent cd5f91f commit 14e0ad7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ stages:
7272
SpecificArtifact: ${{ parameters.SpecificArtifact }}
7373
BuildId: ${{ parameters.BuildId }}
7474

75+
- template: ../templates/set-version-number-variables-step.yml
76+
7577
# Reconstruct the build dir
7678
- task: PowerShell@2
7779
displayName: 'PS: Extract nuget files gpu'
@@ -114,6 +116,7 @@ stages:
114116
-p:OrtPackageId="Microsoft.ML.OnnxRuntime.Gpu"
115117
-p:IsReleaseBuild=${{ parameters.IsReleaseBuild }}
116118
-p:ReleaseVersionSuffix=$(ReleaseVersionSuffix)
119+
-p:PackageVersion=$(OnnxRuntimeVersion)
117120
workingDirectory: '$(Build.SourcesDirectory)\csharp'
118121

119122
- template: ../templates/win-esrp-dll.yml

0 commit comments

Comments
 (0)