Skip to content

Use resolved versions for package dependencies - #147

Merged
natidea merged 2 commits into
dotnet:masterfrom
natidea:correctDepsVersions
Sep 19, 2016
Merged

natidea merged 2 commits into
dotnet:masterfrom
natidea:correctDepsVersions

Conversation

@natidea

@natidea natidea commented Sep 18, 2016

Copy link
Copy Markdown
Contributor

Use resolved versions for package dependencies, instead of the MinVersion returned by the package dependency version range.

Fixes #25 and #144

private void GetPackageAndFileDependencies(LockFileTarget target)
{
var resolvedPackageVersions = target.Libraries
.ToDictionary(pkg => pkg.Name, pkg => pkg.Version.ToString());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're going to want to use StringComparison.OrdinalIgnoreCase whenever creating a dictionary of NuGet package Ids. They are case-insensitive.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Also fixed other collections that store NuGet Ids to use ordinal ignore case

@natidea

natidea commented Sep 19, 2016

Copy link
Copy Markdown
Contributor Author

/cc @dotnet/project-system @rohit21agrawal @rrelyea @joelverhagen

@rohit21agrawal

Copy link
Copy Markdown
Contributor

Can we also merge this to the Restore3 branch after checking into master?

@eerhardt

Copy link
Copy Markdown
Member

Can we also merge this to the Restore3 branch after checking into master?

We (anyone with write permission) can do a merge of the master branch into the Restore3 branch anytime they want.

@natidea
natidea merged commit a65d258 into dotnet:master Sep 19, 2016
nguerrera pushed a commit that referenced this pull request Oct 10, 2016
Use resolved versions for package dependencies
sbomer pushed a commit to sbomer/sdk that referenced this pull request Sep 19, 2017
mmitche pushed a commit to mmitche/sdk that referenced this pull request Jun 5, 2020
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 this pull request may close these issues.

Unify Package Dependency Version numbers to version number under Package Definitions

3 participants