Skip to content

[Bug] Inconsistency between GitVersion.MsBuild and GitVersion.Tool #2813

@vhatsura

Description

@vhatsura

Describe the bug
GitVersion.Tool sets NuGetVersionV2 as Version attribute in project file, however, GitVersion.MsBuild uses FullSemVer.

Expected Behavior

GitVersion.MsBuild should use NuGetVersionV2 as Version attribute in project file.

Actual Behavior

FullSemVer is used as the value for the Version attribute in the project file.

Possible Fix

Change a value in targets to $(GitVersion_NuGetVersionV2)

Steps to Reproduce

Context

It prevents from setting proper version for NuGet package with padded prerelease tag. As a workaround, it's possible to disable UseFullSemVerForNuGet.

Your Environment

  • Version Used: 5.6.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions