Replies: 1 comment 5 replies
-
hello, would someone have any input to that please? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
GitVersion package
GitVersion.MsBuild, AzureDevops task
GitVersion version
5.1.2 and 6.0.2
Operating system
Windows
What are you seeing?
Hi! I have recently migrated from the full dotnet framework to dotnet8. With this migration I had to update most of the Nuget packages.. And here is where my problem arose.
I installed dotnet-gitversion and this is working well on my local machine, generating a fully descriptive output like this
Yet when building my app, my binaries are being signed with only this
like the entire InformationVersion is being replaced with a default 1.0.0+[Sha] where I am expecting the entire thing to be there.
When I updated to GitVersion.MsBuild 5.12.0, I am getting back my information - happy days:
But then when I commit my code and want to build it with AzureDevops pipelines, regardless if I use a pipeline with or without GitVersion Task I am getting this error
net8.0\AssemblyInfo.g.cs(12,28): Error CS7034: The specified version string '20220224.1.0.0' does not conform to the required format - major[.minor[.build[.revision]]]
this is also my .csproj config as I was checking different flags but nothing was working for me like I wished to
What is expected?
I would like results including the full InformationalVersion piece being embedded to my DLL when using the Nuget package on both my local env as well as my CI hosted on Azure Devops. I am not using any fancy configs, reading tags or any of this. Just my recent branch name and commit hash that can me parsed from that string.
Steps to Reproduce
I installed this Nuget on two projects:
Install dotnet-gitversion
Install GitVersion.MsBuild 5.12.0
build solution -> a full info is embedded to a binary
commit to repository and run CI build -> error about version not confirming with patters
Update to GitVersion.MsBuild 6.0.2
build solution -> just a commit Sha is available
commit to repository and run CI build -> just a commit Sha is available
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
Beta Was this translation helpful? Give feedback.
All reactions