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
This commit is contained in:
Doug Bunting 2015-11-13 14:49:58 -08:00
parent 0541ba6d12
commit 419d3a3ea5
1 changed files with 5 additions and 1 deletions

View File

@ -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 }'