Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric St. John <ericstj@microsoft.com>2016-08-17 21:43:07 +0300
committerEric St. John <ericstj@microsoft.com>2016-08-18 18:33:46 +0300
commit8dbc7322b378d67b15ed731950a7ae3c8f3093f5 (patch)
treef297116d829c04d00a951104829a63281d6a90e5 /build.proj
parent1493710b5eaa39d525ec9c069f6cdd1ad9b5c1fb (diff)
Add fastpath for restore
This picks up the latest buildtools which includes a task that adds a fast path for restore. We will now call that task to do a check up front to determine if a restore is actually needed before invoking restore. This helps the common case where everything is up-to-date reducing the restore from 5 minutes down to 1 second.
Diffstat (limited to 'build.proj')
-rw-r--r--build.proj5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.proj b/build.proj
index 992662054d..9cabe8e396 100644
--- a/build.proj
+++ b/build.proj
@@ -81,7 +81,12 @@
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
+ <IsRestoreRequired ProjectJsons="@(ProjectJsonFiles)" PackagesFolder="$(PackagesDir)">
+ <Output TaskParameter="RestoreRequired" PropertyName="RestoreRequired" />
+ </IsRestoreRequired>
+
<Exec Command="$(DnuRestoreCommand) @(DnuRestoreDir->'&quot;%(Identity)&quot;', ' ')"
+ Condition="'$(RestoreRequired)' == 'true'"
StandardOutputImportance="Low"
CustomErrorRegularExpression="(^Unable to locate .*)|(^Updating the invalid lock file with .*)"
ContinueOnError="ErrorAndContinue" />