I've set up a repository (file-based - don't know if that matters) with the following:
- PackageA 0.1.0 (depends on PackageB >=0.1.0, specified with version="0.1.0")
Navigating the packages in the UI confirms that PackageA depends on PackageB >=0.1.0 the latest version of PackageB is 0.2.0. But, when I add a reference to PackageA, PackageB-0.1.0 gets pulled down and when I check the Updates section in the UI
I do not see any available updates for PackageB.
Is this desired behavior? i.e. does NuGet deliberately retrieve the
lowest possible version that satisfies a dependency?
If so (and I hope not - I'd like the latest!), shouldn't the Updates section show that there is an update available for PackageB?
Further, it looks like the docs themselves are confused as to what the correct behavior should be:
Dependency versions are specified in the version attribute of the dependency element. For example,
the following dependency element specifies a dependency on version 1.3.2 or higher of the package named ExamplePackage.
<dependency id="ExamplePackage" version="1.3.2" />
||1.0 ≤ x