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:
parent
ad66b8935c
commit
b05b0e6dc5
13 changed files with 32 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue