Sitelet https://github.com/fsprojects/Paket/issues/834
Skip to content

paket install fails if package version doesn't match .nupkg file #834

Description

@allykzam

While working on #832, discovered that if a nuget-installed package (in this case, it was MvvmLightLibs version 5.0.2.0, which doesn't seem to be on NuGet.org anymore?) is in packages.config with the full version number, but the .nupkg file has a partial version number, it fails to download/install that package.

In my case, the package is stored in a local package source on a mapped drive pointing to a team network share (same one as my "help, there's spaces in my path" issues), and the packages.config file contains <package id="MvvmLightLibs" version="5.0.2.0" targetFramework="net40" /> referring to the package.

When running paket install it fails with Could not find file 'N:\Package Source\Here\MvvmLightLibs.5.0.2.0.nupkg'., and verifying that directory, it contains MvvmLightLibs.5.0.2.nupkg as downloaded from nuget.org previously. Updating all paket.dependencies and paket.lock files to show the version as 5.0.2 and running paket install again results in correctly downloading and unpacking everything.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions