Commit 34bb4fb
Fix C# hotfix release: strip -hotfix suffix for NuGet package lookup
The release tag for a hotfix (e.g. v2.7.0-hotfix2) is passed straight
through to the C# release, but `dotnet pack` derives the NuGet package
version from the csproj <Version>, which is not bumped for a hotfix.
So pack produces SpacetimeDB.*.2.7.0.nupkg while the publish step looked
for ...2.7.0-hotfix2.nupkg and failed with "Package not found".
Strip the -hotfix<N> suffix when building the NuGet package paths (and
the summary output). We intentionally do not strip a generic prerelease
suffix like -rc1, since those are baked into the csproj <Version> and are
part of the real package version; only -hotfix is a tag-only concept.
The Unity tag push keeps the full hotfix version.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 97638b7 commit 34bb4fb
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
361 | 367 | | |
362 | 368 | | |
363 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
364 | 373 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
369 | 378 | | |
370 | 379 | | |
371 | 380 | | |
| |||
0 commit comments