Is there a strategy for calculating the NuGet version on merge request builds that will have its commits squashed when merging to main.
Scenario:
- Initial Version 1.1
- Feature Branch has 10 commits
In this scenario the MR builds will create prerelease NuGet packages with version 1.1.12-sha for testing. Once the MR is complete a release NuGet package with version 1.1.3 would be built from the master branch which would appear older than the prerelease package version.
A workaround for this would be to not squish the merge request but that would make rolling the entire merge request back more complicated if needed.