Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Azure DevOps Pipelines NuGet package versioning

$
0
0

I have an issue with the versioning of the nuget package in my azure build pipeline.Here is the YAML variables and name of the build pipeline.

variables:  version: 4.00  release: 23.8.0  semVer: $(version)$(Rev:.r)name: $(version)$(Rev:.r)

Here is the NuGet Pack Task:

- task: NuGetCommand@2  displayName: 'NuGet Pack'  inputs:    command: pack    packagesToPack: 'Test.nuspec'    configuration: Release    packDestination: '$(Build.ArtifactStagingDirectory)/releases'    versioningScheme: byBuildNumber

The buildByNumber uses the "name" variable in the yaml pipeline. But it seems to skip the extra zero in the "version" variable, and the package that it generates is "Test.4.0.3.nupkg"

Here is the Build Pipeline:

Build Pipeline

And here is the Release pipeline that is created and triggered after the completion of the build pipeline.

Release Pipeline

I have tried the minorVersion: "00" input parameter for this task, but it does not work.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>