Skip to content

Commit

Permalink
Merge pull request #861 from DustinCampbell/fix-case-sensitive-packag…
Browse files Browse the repository at this point in the history
…e-match

NuGet package identities should be compared case-insensitively
  • Loading branch information
david-driscoll authored May 17, 2017
2 parents 0b7b10e + 19bdf33 commit 6dd6f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OmniSharp.MSBuild/MSBuildProjectSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ private static bool ContainsPackageReference(LockFile lockFile, PackageReference
{
foreach (var library in lockFile.Libraries)
{
if (string.Equals(library.Name, reference.Dependency.Id) &&
if (string.Equals(library.Name, reference.Dependency.Id, StringComparison.OrdinalIgnoreCase) &&
reference.Dependency.VersionRange.Satisfies(library.Version))
{
return true;
Expand Down

0 comments on commit 6dd6f46

Please sign in to comment.