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

Make restore command check if dependencies and lock file are in sync #1750

Description

@tebeco

This may be an issue in Paket.VisualStudio in fact so i'll post in both and well see where it goes

Description

Open a project with changes on Paket.dependencies does not impact paket.lock
The Idea should be :
When you get the Latest source control version, open it and rebuild it (the solution).
You should be using the "dependencies" version, even if it means updation paket.lock
(see repro step)

Repro steps

Please provide the steps required to reproduce the problem

  1. Create a solution that use paket and where paket.dependencies have something like :
    nuget MyLib 1.0

    paket install

The paket.lock is created, Build your solution and the close Visual Studio
2. To simulation a change on SourceControl open your "paket.dependencies" and change it :
nuget MyLib 2.0

  1. Re open your solution in Visual Studio Try to rebuild all ...
    You'll see that "paket.lock" did not took the v2.0 of the lib but is still using 1.0
    But paket.dependencies indicate v2.0

Expected behavior

Please provide a description of the behavior you expect.

Actual behavior

Known workarounds

Force "Install manually" when you open the solution (it's a bit f*** up right ?)

Related information

  • Operating system : Win10
  • Release 3.1.9
  • Lastest Vs Extension also
  • .NET Framework 4.5.x

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