Unable to resolve dependencies at version x.y.0.0

Aug 11, 2011 at 3:58 PM
Edited Aug 11, 2011 at 4:08 PM

FAO; @davidfowl - the PM console output

For other readers :-) : I had a problem updating a package that had dependencies at version 0.9.0.0. 

A brief history of the below log

First I tried an Update-Package, but got the package name wrong ;-)
Then I got the name right but I had a default project selected that didn't have it.
Then I started getting Unable to resolve dependency.
Then I uninstalled the packages.  Then I got it to work by using -IgnoreDependencies.
Later, @markrendle told me he'd fixed it by upping the version numbers to x.y.0.1, so I uninstalled again and the final install resolved the dependencies.

Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

Type 'get-help NuGet' to see all available NuGet commands.

PM> Update-Package Simple.Data
Update-Package : Unable to find package 'Simple.Data'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Update-Package Simple.Data.SqlServer
Update-Package : Unable to find package 'Simple.Data.SqlServer' in 'MyProject.Client.Test'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Update-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Update-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Update-Package Simple.Data.Ado
'Simple.Data.Core (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Update-Package : Unable to resolve dependency 'Simple.Data.Core (&#8805; 0.9.0.0)'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data.Ado
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Update-Package Simple.Data.Core
Successfully installed 'Simple.Data.Core 0.9'.
Successfully removed 'Simple.Data.Core 0.7.2' from MyProject.Data.Sql.
Successfully added 'Simple.Data.Core 0.9' to MyProject.Data.Sql.

PM> Update-Package Simple.Data.Ado
'Simple.Data.Core (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Update-Package : Unable to resolve dependency 'Simple.Data.Core (&#8805; 0.9.0.0)'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data.Ado
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Update-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Update-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:15
+ Update-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Update-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
 
PM> Uninstall-Package Simple.Data.SqlServer
Successfully removed 'Simple.Data.SqlServer 0.7.2' from MyProject.Data.Sql.

PM> Uninstall-Package Simple.Data
Uninstall-Package : Unable to find package 'Simple.Data'.
At line:1 char:18
+ Uninstall-Package <<<<  Simple.Data
    + CategoryInfo          : NotSpecified: (:) [Uninstall-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UninstallPackageCommand
 
PM> Uninstall-Package Simple.Data.Ado
Successfully removed 'Simple.Data.Ado 0.7.2' from MyProject.Data.Sql.
Uninstall-Package : Unable to uninstall 'Simple.Data.Ado 0.7.2' because 'Simple.Data.SqlServer 0.7.2' depends on it.
At line:1 char:18
+ Uninstall-Package <<<<  Simple.Data.Ado
    + CategoryInfo          : NotSpecified: (:) [Uninstall-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UninstallPackageCommand
 
PM> Uninstall-Package Simple.Data.Core
Successfully removed 'Simple.Data.Core 0.9' from MyProject.Data.Sql.
Successfully uninstalled 'Simple.Data.Core 0.9'.

PM> Install-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.Ado
'Simple.Data.Core (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Core (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.Ado
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.Core
Successfully installed 'Simple.Data.Core 0.9'.
Successfully added 'Simple.Data.Core 0.9' to MyProject.Data.Sql.

PM> Install-Package Simple.Data.Ado
'Simple.Data.Core (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Core (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.Ado
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.Ado 
'Simple.Data.Core (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Core (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.Ado 
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.Ado -IgnoreDependencies
Successfully installed 'Simple.Data.Ado 0.9'.
Successfully added 'Simple.Data.Ado 0.9' to MyProject.Data.Sql.

PM> Install-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.0)' not installed. Attempting to retrieve dependency from source...
Install-Package : Unable to resolve dependency 'Simple.Data.Ado (&#8805; 0.9.0.0)'.
At line:1 char:16
+ Install-Package <<<<  Simple.Data.SqlServer
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
 
PM> Install-Package Simple.Data.SqlServer -IgnoreDependencies
Successfully installed 'Simple.Data.SqlServer 0.9'.
Successfully added 'Simple.Data.SqlServer 0.9' to MyProject.Data.Sql.

PM> Uninstall-Package Simple.Data.SqlServer
Successfully removed 'Simple.Data.SqlServer 0.9' from MyProject.Data.Sql.
Successfully uninstalled 'Simple.Data.SqlServer 0.9'.

PM> Uninstall-Package Simple.Data.Ado
Successfully removed 'Simple.Data.Ado 0.9' from MyProject.Data.Sql.
The directory is not empty.

Successfully uninstalled 'Simple.Data.Ado 0.9'.

PM> Uninstall-Package Simple.Data.Core
Successfully removed 'Simple.Data.Core 0.9' from MyProject.Data.Sql.
The directory is not empty.

Successfully uninstalled 'Simple.Data.Core 0.9'.

PM> Install-Package Simple.Data.SqlServer
'Simple.Data.Ado (&#8805; 0.9.0.1)' not installed. Attempting to retrieve dependency from source...
Done.
'Simple.Data.Core (&#8805; 0.9.0.1)' not installed. Attempting to retrieve dependency from source...
Done.
Successfully installed 'Simple.Data.Core 0.9.0.1'.
Successfully installed 'Simple.Data.Ado 0.9.0.1'.
Successfully installed 'Simple.Data.SqlServer 0.9.0.1'.
Successfully added 'Simple.Data.Core 0.9.0.1' to MyProject.Data.Sql.
Successfully added 'Simple.Data.Ado 0.9.0.1' to MyProject.Data.Sql.
Successfully added 'Simple.Data.SqlServer 0.9.0.1' to MyProject.Data.Sql.

PM> 

PS. Apologies for inserting as code, formatting problems...

Developer
Aug 11, 2011 at 4:21 PM

This definitely looks like the version normalization problem that we've fixed in the latest version (i.e 0.9 != 0.9.0 != 0.9.0.0):

http://nuget.codeplex.com/workitem/968
http://nuget.codeplex.com/workitem/844