-
Notifications
You must be signed in to change notification settings - Fork 650
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
Expose the prelease part of SemVerPadded #651
Comments
For the record, I worked around this at the moment using a powershell script in TeamCity to split the version number and then pad it manually. The script can be found in this gist. |
I am struggling to find where |
Woudn't |
@JakeGinnivan there's probably no point searching for any documentation at the moment, it's still in the process of being written for very large parts. But yes, indeed, it's as you suspect. Have a look at my comments on #647. |
I am leaning towards @sunsided's idea, I wasn't a massive fan of NuGetVersion because GitVersion was supposed to be agnostic but it did make it more discoverable. For DNX I'm not so sure as it is far more lightweight and hopefully doesn't have all the issues NuGet has. We should just expose |
@JakeGinnivan Sounds good! 👍 |
I think this is covered by existing variables plus #742 Am I missing anything? |
For
dnx
/dnu
-based builds (#647), I'm required to set theDNX_BUILD_VERSION
environment, which will replace the placeholder asterisk inproject.json
. AnDNX_BUILD_VERSION=unstable1234
with a1.0.0-*
setting would result in a1.0.0-unstable1234
build and NuGet package.In order to circle around incompatibilites with
dnx
-based, GitVersion and v2-based NuGet feeds, the prerelease and padded prerelease part (e.g.unstableXXXX
ofLegacySemVerPadded
) is required as a separate export.Alternatively a
GitVersion.DnxBuildVersion
could be exposed.The text was updated successfully, but these errors were encountered: