This repository was archived by the owner on Dec 18, 2017. It is now read-only.
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
Fix casing of package IDs in lockfile #1470
Closed
Description
Current dnu restore
behavior is:
When restoring a package with wrong id casing, for example restoring package XYZ.1.0.0
by having "xyz": "1.0.0"
in project.json
, it shows Unable to resolve xyz.1.0.0, do you mean XYZ.1.0.0?
and doesn't install the package.
It prevents users from using some NuGet packages (see cases below).
New behavior should be:
Instead of exiting with error message above, we install the package to .dnx/xyz/1.0.0
and make sure the casing of package name in lockfile is correct (xyz
). This should fix the cases below.
Basically, we always agree on the casing used by dependency graph.