Looking for Coherence packages under artifacts\build in addition to packages-expanded directory

This commit is contained in:
Pranav K 2016-11-01 10:04:54 -07:00
parent 4a40733fc0
commit f7fc72dcf2
1 changed files with 11 additions and 1 deletions

View File

@ -318,7 +318,17 @@ var buildTarget = "compile"
}
}
Environment.SetEnvironmentVariable("NUGET_VOLATILE_FEED_AspNetCore", Path.Combine(coherencePath, "packages-expanded"));
var coherencePackages = Path.Combine(coherencePath, "packages-expanded");
if (!Directory.Exists(coherencePackages))
{
coherencePackages = Path.Combine(coherencePath, "build");
}
if (!Directory.Exists(coherencePackages))
{
throw new Exception("Packages directory could not be located under " + coherencePath);
}
Environment.SetEnvironmentVariable("NUGET_VOLATILE_FEED_AspNetCore", coherencePackages);
}
#change-default-build-target-to-verify