Fix GitVersion 6.0 configuration compatibility and enable dynamic versioning#49
Merged
maximilien-noal merged 3 commits intomainfrom Nov 10, 2025
Merged
Conversation
Co-authored-by: maximilien-noal <1087524+maximilien-noal@users.noreply.github.com>
Co-authored-by: maximilien-noal <1087524+maximilien-noal@users.noreply.github.com>
maximilien-noal
approved these changes
Nov 10, 2025
Copilot
AI
changed the title
[WIP] Fix GitVersion output to valid JSON
Fix GitVersion 6.0 configuration compatibility and enable dynamic versioning
Nov 10, 2025
maximilien-noal
approved these changes
Nov 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
GitVersion 6.0 introduced breaking changes in configuration property names. The existing configuration used deprecated properties causing parsing errors and preventing JSON output. Additionally, hardcoded version properties in the project file prevented GitVersion from injecting calculated versions during CI/CD builds.
GitVersion.yml updates:
tag→label(all branch configurations)tag-number-pattern→label-number-pattern(pull-request branch)prevent-increment-of-merged-branch-version→prevent-increment: { of-merged-branch: true/false }(main, develop, release branches)Cryogenic.csproj updates:
Rationale behind Changes
GitVersion 6.0.5 fails to parse configurations using pre-6.0 property names, causing CI/CD pipelines to fail with "Property 'tag' not found" errors. Hardcoded version properties prevented the
/p:Version=parameters in workflow builds from taking effect, defeating the purpose of GitVersion integration.Suggested Testing Steps
dotnet-gitversion /output json | jq .dotnet-gitversion /showconfigdotnet build(should show version 0.1.0)dotnet build /p:Version=1.2.3(should show version 1.2.3 in assembly)Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
av-build-tel-api-v1.avaloniaui.netdotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.1/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.1/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.