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

Paket install does an update when framework restriction are present #1305

Description

@vbfox

Paket install does an update when there are complex framework restrictions (local & global)

Given this paket.dependencies file:

framework: >= net40

source https://nuget.org/api/v2

nuget NLog framework: net40
nuget NLog.Contrib

And this paket.lock file :

 FRAMEWORK: >= NET40
NUGET
  remote: https://nuget.org/api/v2
  specs:
    NLog (4.2.1)
    NLog.Contrib (1.0.0.2)
      NLog (>= 2.1.0)

Running paket install :

c:\Code\paket_repro_install_update>paket install
Paket version 2.24.5.0
Resolving packages for group Main:
 - NLog.Contrib 1.0.0.2
 - NLog 4.2.2
Locked version resolution written to c:\Code\paket_repro_install_update\paket.lock
2 seconds - ready.

Produce the following paketlock file :

FRAMEWORK: >= NET40
NUGET
  remote: https://nuget.org/api/v2
  specs:
    NLog (4.2.2)
    NLog.Contrib (1.0.0.2)
      NLog (>= 2.1.0)

NLog has been updated from 4.2.1 to 4.2.2 without reason.

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