I've created a Nuget (Nancy.Testing) that has a dependency on the exact version 18.104.22.1680 of the xunit Nuget. However when I try to install the package I get the following error
PM> Install-Package Nancy.Testing'
Nancy (= 0.6.0)' not installed.
Attempting to retrieve dependency from source...Done.
'xUnit.net (= 22.214.171.1240)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'xUnit.net (= 126.96.36.1990)'.
At line:1 char:16+ Install-Package <<<< Nancy.Testing
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
However if I try to explicitly install just that package it works just fine
PM> Install-Package -Version 188.8.131.520 xunit
Successfully installed 'xunit 184.108.40.2060'
Am I missing some key concept here? If not then this does sound like a serious effect if dependencies with exact version requirements stop working if a newer version is available? This could cause some nasty ripple effects in other packages