From 5a58edab6c2081b9450f71cd7a60cdda0af355ca Mon Sep 17 00:00:00 2001 From: vraspar Date: Mon, 7 Jul 2025 11:38:22 -0700 Subject: [PATCH 1/3] Add PackageVersion parameter to NuGet packaging stage --- .../github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml | 1 + 1 file changed, 1 insertion(+) 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 84b6d30ee32ac..9c2b3e8d1c80c 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 @@ -114,6 +114,7 @@ stages: -p:OrtPackageId="Microsoft.ML.OnnxRuntime.Gpu" -p:IsReleaseBuild=${{ parameters.IsReleaseBuild }} -p:ReleaseVersionSuffix=$(ReleaseVersionSuffix) + -p:PackageVersion=$(OnnxRuntimeVersion) workingDirectory: '$(Build.SourcesDirectory)\csharp' - template: ../templates/win-esrp-dll.yml From 93e9df8f7d44db4ae81a5862676401d30d64ca79 Mon Sep 17 00:00:00 2001 From: vraspar Date: Tue, 8 Jul 2025 12:15:05 -0700 Subject: [PATCH 2/3] Add missing template for setting version number in NuGet packaging stage --- .../azure-pipelines/stages/nuget-cuda-packaging-stage.yml | 2 ++ 1 file changed, 2 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 9c2b3e8d1c80c..8fddbd95076a1 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 @@ -72,6 +72,8 @@ stages: SpecificArtifact: ${{ parameters.SpecificArtifact }} BuildId: ${{ parameters.BuildId }} + - template: set-version-number-variables-step.yml + # Reconstruct the build dir - task: PowerShell@2 displayName: 'PS: Extract nuget files gpu' From 7aea27b2812e2adc7404ac5e16b694eff8130eb0 Mon Sep 17 00:00:00 2001 From: vraspar Date: Tue, 8 Jul 2025 12:21:32 -0700 Subject: [PATCH 3/3] Update NuGet CUDA packaging stage configuration --- .../azure-pipelines/stages/nuget-cuda-packaging-stage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8fddbd95076a1..a87bb55441ac7 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 @@ -72,7 +72,7 @@ stages: SpecificArtifact: ${{ parameters.SpecificArtifact }} BuildId: ${{ parameters.BuildId }} - - template: set-version-number-variables-step.yml + - template: ../templates/set-version-number-variables-step.yml # Reconstruct the build dir - task: PowerShell@2