Skip to content

Commit d13619c

Browse files
phmatrayclaude
andcommitted
fix: disable MinVer when manual version is provided
MinVer was overriding the manual -p:Version parameter because it runs during the build process in Release mode. Now MinVer will be skipped when the Version property is set, allowing manual version specification to work correctly. This completes the fix for NuGet package versioning in CI/CD. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 59acaf0 commit d13619c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Authors>Philippe Matray</Authors>
1313
<!-- MinVer Configuration for all projects -->
1414
<MinVerTagPrefix>v</MinVerTagPrefix>
15-
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
15+
<MinVerSkip Condition="'$(Configuration)' == 'Debug' or '$(Version)' != ''">true</MinVerSkip>
1616
</PropertyGroup>
1717

1818
<!-- Code Analysis Settings -->

0 commit comments

Comments
 (0)