Improved package reference resolution.

This commit is contained in:
AndrewPeters 2014-01-28 21:51:42 -08:00
parent 9eac453540
commit 9935af3a43
1 changed files with 8 additions and 2 deletions

View File

@ -392,8 +392,14 @@ functions
Log(reference.Key + " = " + version + " ==> " + packageDir);
var candidate = candidates.Select(c => Path.Combine(packageDir, "lib", c))
.FirstOrDefault(Directory.Exists);
var libPath = Path.Combine(packageDir, "lib");
var candidate
= candidates.Select(c => Path.Combine(libPath, c))
.FirstOrDefault(Directory.Exists)
?? candidates
.SelectMany(c => Directory.GetDirectories(libPath, "*" + c + "*"))
.FirstOrDefault();
if (candidate == null)
{