From f7fc72dcf2b3da4bb989686b45a29897e4fdaf1e Mon Sep 17 00:00:00 2001
From: Pranav K <prkrishn@hotmail.com>
Date: Tue, 1 Nov 2016 10:04:54 -0700
Subject: [PATCH] Looking for Coherence packages under artifacts\build in
 addition to packages-expanded directory

---
 makefile.shade | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/makefile.shade b/makefile.shade
index acc1f39505f..acad2ee2b66 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
-- 
GitLab