Brett Janer
Brett Janer

Reputation: 517

Using GitVersion, What is the difference between NuGetVersionV2 & NuGetVersion

Using GitVersion, What is the difference between variables NuGetVersionV2 & NuGetVersion? The examples found here show them as the same thing.

Upvotes: 2

Views: 3273

Answers (1)

Gary Ewan Park
Gary Ewan Park

Reputation: 19011

At the minute, they are exactly the same.

As you can see here:

https://github.com/GitTools/GitVersion/blob/05161c36debf88b4278b7d57553ccae4c62d1174/src/GitVersionCore/SemanticVersionFormatValues.cs#L120

If I recall correctly, I think the idea was that there would always be a NuGetVersion, which would always give you a Semantic Version Number that works with the latest version of NuGet, but if you wanted to take a dependency on a Semantic Version number that would work with a specific NuGet Version, you have that option too.

Upvotes: 2

Related Questions