exact version dependency fails to resolve

Jun 22, 2011 at 6:02 AM


I've created a Nuget (Nancy.Testing) that has a dependency on the exact version 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 (=' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'xUnit.net (='.
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 xunit
Successfully installed 'xunit'


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

Jun 22, 2011 at 6:10 AM


David Ebbo pointed out this was an 'xunit' vs 'xunit.net' issue