-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3.1.0 (& 3.0.2) Generating improper NuGetVersion strings #608
Comments
I second this. We use the backlog id first in our branch name, and it would be nice to keep that as part of the pre-release tag. Currently, I have managed to solve this by adding the following to the gitversion-config: pbi[/-]:
mode: ContinuousDeployment
tag: pbi which gives me nugetversion like |
Related to this, I also see some invalid strings if I have a branch |
This is typical when working on feature branches prefixed with issue numbers (e.g. JIRA). And in fact, this is due to an unfixed bug in NuGet, cf.: NuGet #1743. Note that this has also been discussed in #664 cf. #664 (comment) Since 3.4.x you work around the NuGet bug using As far as i understand the reason why this did not get fixed in NuGet yet is concerns on backward compatibility with NuGet 2 |
As @nshenoy points out in #1067 (comment), NuGet 3.5 is RTM and solves this problem. Doesn't that mean this issue can be closed? |
I just updated using |
NuGet Server got SemVer 2.0 support in v2.14.0 and NuGet.exe got SemVer 2.0 support in v4.3, so this shouldn't be a problem anymore. For those who need less syntactically rich version numbers, the variable |
Hi,
I've noticed an issue where the generated NuGetVersion and NuGetVersionV2 strings are invalid.
We have some branches that were created like "feature/123-SomeFeature". When we run GitVersion on this branch the NuGetVersion and NuGetVersionV2 appear like "2.1.0-123-somefeature0010". This is actually an invalid version string. Nuget does not allow the pre-release to start with a number
Nuget pack output:
'2.1.0-123-somefeature0010' is not a valid version string. Parameter name: version
I'm not sure what the best fix for this is. Currently I'm manually generating the Nuget version and appending an arbitrary "b" before the number like:
2.1.0-b123-somefeature0010
Another suggestion may be to remove any non-alpha characters from the start of the branch name.
The text was updated successfully, but these errors were encountered: