From 419d3a3ea53968ccfc46ba3d1f0b1643ff3c5d0e Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Fri, 13 Nov 2015 14:49:58 -0800 Subject: [PATCH] Support restoring with .NET Core - infrastructure for switching restores everywhere i.e. addressing #290 - e.g. add `KOREBUILD_DNU_RESTORE_CORECLR` setting to `.travis.yml` files, especially if using Trusty --- build/_k-restore.shade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/_k-restore.shade b/build/_k-restore.shade index b3fcbdb471..f8bae50216 100644 --- a/build/_k-restore.shade +++ b/build/_k-restore.shade @@ -10,6 +10,10 @@ restoreDir='' default currentDir = '${ Directory.GetCurrentDirectory() }' default restoreDir = '${ currentDir }' +-// Set KOREBUILD_DNU_RESTORE_CORECLR environment variable to any value and `dnu restore` will use Core CLR. +var useCore = '${ E("KOREBUILD_DNU_RESTORE_CORECLR") }' +default restoreUse='${ string.IsNullOrEmpty(useCore) ? string.Empty : "default -runtime coreclr" }' + default restore_options=' ${ E("KOREBUILD_DNU_RESTORE_OPTIONS") } ${ IsLinux ? string.Empty : "--parallel" }' -dnu command='restore${ restore_options }' workingDir='${ restoreDir }' +dnu command='restore${ restore_options }' workingDir='${ restoreDir }' dnvmUse='${ restoreUse }'