After NuGet started lower casing the packages, we started hitting issues where we failed to locate dependencies under our list of libraries due to different casing in the libraries names. The fix here is to compare the library names ignoring casing.

This commit is contained in:
Livar Cunha 2016-07-28 21:17:32 -07:00
parent ad66b8935c
commit b05b0e6dc5
13 changed files with 32 additions and 19 deletions

View file

@ -126,7 +126,7 @@ namespace Microsoft.DotNet.ProjectModel.Tests
.Build();
// Will fail with dupes if any
context.LibraryManager.GetLibraries().ToDictionary(l => l.Identity.Name);
context.LibraryManager.GetLibraries().ToDictionary(l => l.Identity.Name, StringComparer.OrdinalIgnoreCase);
}
[Fact]
@ -153,7 +153,7 @@ namespace Microsoft.DotNet.ProjectModel.Tests
.Build();
// Will fail with dupes if any
context.LibraryManager.GetLibraries().ToDictionary(l => l.Identity.Name);
context.LibraryManager.GetLibraries().ToDictionary(l => l.Identity.Name, StringComparer.OrdinalIgnoreCase);
}
}
}