fix: remove GitVersion MSBuild task, pin local builds to 99.99.99 (#6077) by thomhurst · Pull Request #6101 · thomhurst/TUnit (original) (raw)
GitVersion.MsBuild crashed local builds with InvalidOperationException in MainlineVersionStrategy.GetCommitsWasBranchedFrom (6.7.0). The task was never used by CI - CI computes the version once via the GitVersion GitHub Action and passes -p:Version/-p:AssemblyVersion/... explicitly. So the task was pure dead weight plus the crash source.
- Remove GitVersion.MsBuild PackageReference + package version entry
- Pin Version/AssemblyVersion/FileVersion to 99.99.99 when not on GitHub Actions (guarded so explicit -p: overrides still win); CI is unchanged
- Drop now-dead local-GitVersion plumbing from TUnit.PublicAPI.csproj
- Guard UploadToNuGetModule: throw if resolved version is missing or 99.99.99, so a dummy-versioned package can never be pushed to NuGet
[](/apps/claude)
- TUnit.PublicAPI.csproj: remove the AdditionalProperties ProjectReference pin; each referenced project self-pins to 99.99.99 via the root Directory.Build.props locally (verified: transitive TUnit.Core builds as 99.99.99.0 without it).
- UploadToNuGetModule: ToArray() the nupkg query so the guard and push share one filesystem walk instead of two.
thomhurst deleted the fix/6077-remove-gitversion branch
[](/apps/claude)
This was referenced
May 29, 2026
This was referenced
Jun 13, 2026
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
[ Show hidden characters]({{ revealButtonHref }})