Skip to content

[ISSUE]: There's no NuGetVersionV2 anymore, and no zero-padded PreReleaseNumber #4153

Closed
@Jaykul

Description

@Jaykul

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitVersion.Tool

GitVersion version

6.0.1

Operating system

N/A

What are you seeing?

I was porting settings from a PowerShell module, and I get this error:

Unable to format AssemblyInformationalVersion. Check your format string: 'NuGetVersionV2' is not a member of type 'GitVersion.SemanticVersionFormatValues' (Parameter 'propertyOrFieldName')

What is expected?

I expected to be able to build a version like "1.2.3-beta0002" so I can upload packages to the PowerShell gallery. chocolatey, and other old nuget-based servers.

Note that the FAQ still refers to a NuGetVersionV2

Steps to Reproduce

Try using this in your GitVersion.yml

assembly-informational-format: '{NuGetVersionV2}'

The FAQ still refers to a NuGetVersionV2

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions