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:
And here is the Release pipeline that is created and triggered after the completion of the build pipeline.
I have tried the minorVersion: "00"
input parameter for this task, but it does not work.