diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj index 7c96c5690d..be6cca8b86 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj +++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj @@ -119,6 +119,20 @@ Pack="true" Visible="false" /> + + + + diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml index 72377b2068..7f3aa87f1e 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/cpu.yml @@ -177,6 +177,15 @@ jobs: downloadPath: $(Build.BinariesDirectory)/nuget-artifact/final-package gitCommitHash: $(OnnxRuntimeGitCommitHashShort) + + - task: PowerShell@2 + displayName: 'Get Current Date' + inputs: + targetType: 'inline' + script: | + $date = $(Get-Date -Format "yyyy-MM-dd") + Write-Host "##vso[task.setvariable variable=CurrentDate]$date" + - task: AzureFileCopy@3 displayName: 'Copy Signed NuGet Package to Blob Store' condition: ne(variables['IsReleaseBuild'], 'true') # rlease build has a different package naming scheme @@ -186,4 +195,5 @@ jobs: destination: azureBlob storage: ortpackages containerName: ortpackages + blobPrefix: '$(CurrentDate)/'