From 1db6eb082336f1ce4b656b988bbb1c299fb3b378 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Thu, 30 Nov 2017 15:03:51 -0800 Subject: [PATCH] Add support for automatically installing new versions of the 2.1 runtime (#676) --- build/dependencies.props | 9 +++++++-- build/repo.props | 4 +++- run.ps1 | 13 ++++++++++++- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 8752bca426..f575dfbe83 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -1,5 +1,7 @@  + + @@ -29,13 +31,16 @@ https://dotnet.myget.org/F/dotnet-core/api/v3/index.json 2.1.0-preview1-25915-01 + $(CoreSetupPackageVersion) + + $(MicrosoftNETCoreAppPackageVersion) - + KRB2004 MicrosoftNETCoreApp21PackageVersion @@ -243,7 +248,7 @@ https://api.nuget.org/v3/index.json - 2.0.0 + 2.0.3 diff --git a/build/repo.props b/build/repo.props index 951d62b431..1cf5614923 100644 --- a/build/repo.props +++ b/build/repo.props @@ -19,7 +19,9 @@ - + diff --git a/run.ps1 b/run.ps1 index e46d790b60..f28cbf2f07 100644 --- a/run.ps1 +++ b/run.ps1 @@ -32,6 +32,9 @@ The path to the configuration file that stores values. Defaults to korebuild.jso .PARAMETER PackageVersionPropsUrl (optional) the url of the package versions props path containing dependency versions. +.PARAMETER AssetRootUrl +(optional) the base url for acquiring build assets from an orchestrated build + .PARAMETER AccessTokenSuffix (optional) the query string to append to any blob store access for PackageVersionPropsUrl, if any. @@ -198,7 +201,15 @@ if ($PackageVersionPropsUrl) { } if ($RestoreSources) { - $MSBuildArguments = "-p:DotNetRestoreSources=$RestoreSources" + $MSBuildArguments += "-p:DotNetRestoreSources=$RestoreSources" +} + +if ($AssetRootUrl) { + $MSBuildArguments += "-p:DotNetAssetRootUrl=$AssetRootUrl" +} + +if ($AccessTokenSuffix) { + $MSBuildArguments += "-p:DotNetAssetRootAccessTokenSuffix=$AccessTokenSuffix" } # Execute