Improved package reference resolution.
This commit is contained in:
parent
9eac453540
commit
9935af3a43
|
|
@ -392,8 +392,14 @@ functions
|
||||||
|
|
||||||
Log(reference.Key + " = " + version + " ==> " + packageDir);
|
Log(reference.Key + " = " + version + " ==> " + packageDir);
|
||||||
|
|
||||||
var candidate = candidates.Select(c => Path.Combine(packageDir, "lib", c))
|
var libPath = Path.Combine(packageDir, "lib");
|
||||||
.FirstOrDefault(Directory.Exists);
|
|
||||||
|
var candidate
|
||||||
|
= candidates.Select(c => Path.Combine(libPath, c))
|
||||||
|
.FirstOrDefault(Directory.Exists)
|
||||||
|
?? candidates
|
||||||
|
.SelectMany(c => Directory.GetDirectories(libPath, "*" + c + "*"))
|
||||||
|
.FirstOrDefault();
|
||||||
|
|
||||||
if (candidate == null)
|
if (candidate == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue