So, I have the NServiceBus.Host package, which depends on NServiceBus> = 4.5.0.
Nuget has a version of NServiceBus version 4.5.1. When I install the NServiceBus.Host package, I get:
PM> install-package nservicebus.host Attempting to resolve dependency 'NServiceBus (β₯ 4.5.0)'. Attempting to resolve dependency 'NServiceBus.Interfaces (β₯ 4.5.0)'. Installing 'NServiceBus.Interfaces 4.5.0'. You are downloading NServiceBus.Interfaces from NServiceBus Ltd, the license agreement to which is available at http://particular.net/LicenseAgreement. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'NServiceBus.Interfaces 4.5.0'. Installing 'NServiceBus 4.5.0'.
As you can see, I get the dependency version version 4.5.0.
The nuget doco says:
If the dependency is not installed, NuGet goes through the following steps:
NuGet lists each version of Subkismet in the feed, which is within the specification of the version. NuGet then narrows this value only for packages with the smallest version of Major / Minor. From the remaining packages, NuGet selects the number with the highest version number.
"NuGet selects the number with the highest version number." seems to be broken here, as the version is missing.
Is this a bug in NuGet?
source share