MinVerPreRelease terminates before the first hyphen in the pre-release identifiers
Closed this issue · 1 comments
adamralph commented
Version(s)
1.0.0 - 2.4.0
To reproduce
Steps to reproduce the behaviour:
- Take a .NET project with MinVer installed in a Git repo
- Create a tag named
1.2.3-foo-bar
- Set MINVERVERBOSITY to "detailed"
- Build the project
Expected behaviour
Standard error contains MinVer: [output] MinVerPreRelease=foo-bar
.
Actual behaviour
Standard error contains MinVer: [output] MinVerPreRelease=foo
.
Workarounds
Extract the pre-release identifiers from PackageVersion
or Version
.
Additional context
Thanks to @kojoru for identifying and fixing this bug in #478.
adamralph commented
This has been fixed and manually verified in #478. Before closing this issue, a test should be added after the current tests have been moved to a test project.