Skip to content

Commit 59acaf0

Browse files
phmatrayclaude
andcommitted
fix: apply version override to build step instead of pack step
MinVer calculates version during the build step, not the pack step. Using dotnet pack --no-build with -p:Version doesn't work because the assemblies are already built with the wrong version. This fix moves the -p:Version parameter to the dotnet build command so that MinVer is properly overridden during compilation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 26139c2 commit 59acaf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ jobs:
135135

136136
- name: Build
137137
if: steps.should_release.outputs.new_release == 'true'
138-
run: dotnet build --configuration Release --no-restore
138+
run: |
139+
VERSION=${{ steps.get_version.outputs.new_version }}
140+
dotnet build --configuration Release --no-restore -p:Version=$VERSION
139141
140142
- name: Test
141143
if: steps.should_release.outputs.new_release == 'true'

0 commit comments

Comments
 (0)