Skip to content

[ISSUE]: semver not being read with 6.xx.xx when GenerateNuGetPackageOnBuild = True on csproj #4460

Open
@berndesj

Description

@berndesj

Prerequisites

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

GitVersion package

GitVersion.MsBuild

GitVersion version

6.0.0 and sub

Operating system

Windows

What are you seeing?

in my csproj i use Gitversion.MSBULD 5.12.0 and when i build localy or on pipeline the semver calculated is show on my nupkg when the GenerateNuGetPackageOnBuild is TRUE.

when i take a newer version 6.xx.xx it is not read and by default of VS i get 1.0.0 because i don't set Version in the csproj .

Image

What is expected?

i was just expecting to upgrade to 6 and above and it would have kept the version of semversion ....

Steps to Reproduce

take a csproj with gitversion.msbuild with 5.12 ....
then switch to 6.xx and you will see .

don,t forget to set GenerateNuGetPackageOnBuild = true

Image

RepositoryFixture Test

No response

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

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