adamralph/minver

MinVerPreRelease terminates before the first hyphen in the pre-release identifiers

Closed this issue · 1 comments

Version(s)

1.0.0 - 2.4.0

To reproduce

Steps to reproduce the behaviour:

  1. Take a .NET project with MinVer installed in a Git repo
  2. Create a tag named 1.2.3-foo-bar
  3. Set MINVERVERBOSITY to "detailed"
  4. 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.

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.