dotnet / dotnet/Nerdbank.GitVersioning

Feature Request: Add support for removing the delimiter between the prerelease label and {height} in NuGetPackageVersion

Open
#710 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
1.6k
Forks
185
Avg merge
1d 1h
Merged PRs (30d)
46

Description

To allow migrating projects that are using different prerelease versioning schemes, it would be useful to be able to have more control over the format of the `NuGetPackageVersion` string that is produced.

Specifically, we would like to remove the `-` from between the prerelease label and the `{height}` element in order to correctly compare with a prerelease pattern we are already using.

```
Currently:

4.8.0-beta-0001+gxxxxxxxxxx

Desired:

4.8.0-beta0001+gxxxxxxxxxx
```

This can also be done for other package mangers besides NuGet, and it would make the most sense to enable this feature for all package mangers at once to keep the version pattern consistent.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.