From c497bf498fd4e964b00e2ee44bd840f2a269ea6c Mon Sep 17 00:00:00 2001 From: John Beisner Date: Tue, 13 Jun 2017 16:45:29 -0700 Subject: [PATCH] Write a 'latest.coherent.version' file at blob storage so users have a 'coherent' option to SDK installations. --- build/BundledRuntimes.props | 11 ++++- build/publish/FinishBuild.targets | 28 ++++++++++- .../dotnet-cli-build/CopyBlobsToLatest.cs | 6 +++ scripts/obtain/dotnet-install.ps1 | 37 +++++++++++---- scripts/obtain/dotnet-install.sh | 47 ++++++++++++++----- 5 files changed, 103 insertions(+), 26 deletions(-) diff --git a/build/BundledRuntimes.props b/build/BundledRuntimes.props index 2d79fa46f..685df5297 100644 --- a/build/BundledRuntimes.props +++ b/build/BundledRuntimes.props @@ -32,7 +32,9 @@ $(CoreSetupBlobRootUrl)aspnetcore/store/$(AspNetCoreRuntimeVersion) - + runtime.version + $(PackagesDirectory)/$(AspNetCoreSharedRuntimeVersionFileName) + $(HostOSName)$(Architecture) $(HostOSName) @@ -90,5 +92,12 @@ $(AspNetRuntimePackageStorePublishDirectory) + <_DownloadAndExtractItem Include="AspNetCoreSharedRuntimeVersionFile" + Condition="!Exists('$(AspNetCoreSharedRuntimeVersionFile)')"> + $(AspNetCoreRuntimeInstallerBlobRootUrl)/$(AspNetCoreSharedRuntimeVersionFileName) + $(AspNetCoreSharedRuntimeVersionFile) + + + diff --git a/build/publish/FinishBuild.targets b/build/publish/FinishBuild.targets index 774cf28a3..d6d1a8d4f 100644 --- a/build/publish/FinishBuild.targets +++ b/build/publish/FinishBuild.targets @@ -2,6 +2,7 @@ @@ -14,6 +15,27 @@ + + + false + true + + + + + + + + + + + + + CommitHash="$(CommitHash)" + Coherent="$(Coherent)" /> + CommitHash="$(CommitHash)" + Coherent="$(Coherent)" /> Download from the CHANNEL specified (default: $channel)." + echo " -c,--channel Download from the CHANNEL specified, Defaults to \`$channel\`." echo " -Channel" - echo " -v,--version Use specific version, or \`latest\`. Defaults to \`latest\`." + echo " Possible values:" + echo " - Current - most current release" + echo " - LTS - most current supported release" + echo " - 2-part version in a format A.B - represents a specific release" + echo " examples: 2.0; 1.0" + echo " - Branch name" + echo " examples: release/2.0.0; Master" + echo " -v,--version Use specific VERSION, Defaults to \`$version\`." echo " -Version" + echo " Possible values:" + echo " - latest - most latest build on specific channel" + echo " - coherent - most latest coherent build on specific channel" + echo " coherent applies only to SDK downloads" + echo " - 3-part version in a format A.B.C - represents specific version of build" + echo " examples: 2.0.0-preview2-006120; 1.1.0" echo " -i,--install-dir Install under specified location (see Install Location below)" echo " -InstallDir" echo " --architecture Architecture of .NET Tools. Currently only x64 is supported." echo " --arch,-Architecture,-Arch" echo " --shared-runtime Installs just the shared runtime bits, not the entire SDK." echo " -SharedRuntime" - echo " --debug-symbols,-DebugSymbols Specifies if symbols should be included in the installation." echo " --dry-run,-DryRun Do not perform installation. Display download link." echo " --no-path, -NoPath Do not set PATH for the current process." echo " --verbose,-Verbose Display diagnostics information."