Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy package reference does not no-op after building on package install. #5419

Closed
nkolev92 opened this issue Jun 15, 2017 · 0 comments · Fixed by NuGet/NuGet.Client#1659
Closed
Assignees
Milestone

Comments

@nkolev92
Copy link
Member

Legacy package reference does not no-op after the first build after package install.

The package install adds the package to the "dependencies" but not in the frameworks.
In addition the version during install is normalzied version range while during on build restore it's not.

On install

      "dependencies": {
        "Newtonsoft.Json": {
          "target": "Package",
          "version": "[10.0.2, )"
        }
      },
      "frameworks": {
        "net461": {}
      },

On build restore

      "dependencies": {
        "Newtonsoft.Json": {
          "target": "Package",
          "version": "10.0.2"
        }
      },
      "frameworks": {
        "net461": {
          "dependencies": {
            "Newtonsoft.Json": {
              "target": "Package",
              "version": "10.0.2"
            }
          }
        }
      },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant