I have created a nuget package for a library we use at my company. The library uses both Fluent NHibernate 1.3.0.717 and Structure Map 2.6.2.
Because some folks are using StructureMap 2.6.3, I created the dependencies of the package as:
<dependencies> <dependency id="FluentNHibernate" version="[1.3,)" /> <dependency id="structuremap" version="[2.6.2,)" /> </dependencies> And when the package shows up in NuGet it says that Structure Map >=2.6.2 is required. So far, so good.
Here's the issue: When I go to add this library to my project, it always installs Structure Map 2.6.3. It even uninstalls 2.6.2 from my project in order to do so.
I don't see any sign that structure map 2.6.3 is a dependency of FluentNHibernate (or any of its dependencies) so I am absolutely baffled as to why it will not simply add my library with the FluentNHibernate dependencies and leave my StructureMap 2.6.2 alone.
I don't know if this would have anything to do with it, but we host the packages on a UNC share.
2.6.2; See docs.nuget.org/docs/reference/version-range-specification