Looking for Coherence packages under artifacts\build in addition to packages-expanded directory
This commit is contained in:
parent
4a40733fc0
commit
f7fc72dcf2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue