Dorin
Dorin

Reputation: 2542

nuget packages versioning comparison

When I install a Nuget package X that depend on package D version >= 0.0.2.0. And I already have the D package version 0.0.10.0 installed. Is it going to remove the existing D version and install the 0.0.2.0 or keep the version 0.0.10 since its newer?

Is version 0.0.10.0 is >= 0.0.2.0 in nuget or not?

Upvotes: 2

Views: 1381

Answers (1)

Adrian Hofman
Adrian Hofman

Reputation: 1451

As stated in this NuGet doc, NuGet uses the rules of the Semantic Versioning spec, which states that:

Each element MUST increase numerically. For instance: 1.9.0 -> 1.10.0 -> 1.11.0.

Upvotes: 1

Related Questions