GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

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

Open berndesj opened this issue 8 months ago • 6 comments

Prerequisites

  • [x] I have written a descriptive issue title
  • [x] 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).


berndesj avatar Mar 18 '25 18:03 berndesj