diff --git a/makefile.shade b/makefile.shade index acc1f39505f79571be74edc61e5988fd5b6824ff..acad2ee2b660d74c49e2e436c7f78f6f30ef2bf5 100644 --- a/makefile.shade +++ b/makefile.shade @@ -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