Update dotnet metadata for next channel for automated updates (#12502)

This commit is contained in:
Aditya Patwardhan 2020-04-29 14:42:00 -07:00 committed by GitHub
parent 0087f78c26
commit 20a1e1cc3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{
"sdk": {
"channel": "release/5.0.1xx-preview4",
"packageVersionPattern": "5.0.0-preview.4"
"packageVersionPattern": "5.0.0-preview.4",
"nextChannel": "net5/preview4"
}
}

View file

@ -3,6 +3,8 @@
[CmdletBinding()]
param (
[Parameter()]
[string]$SDKVersionOverride
)
<#
@ -139,7 +141,9 @@ if(-not (Get-PackageSource -Name 'dotnet5' -ErrorAction SilentlyContinue))
## Install latest version from the channel
Install-Dotnet -Channel "$Channel" -Version 'latest'
$sdkVersion = if ($SDKVersionOverride) { $SDKVersionOverride } else { "latest" }
Install-Dotnet -Channel "$Channel" -Version $sdkVersion
Write-Verbose -Message "Installing .NET SDK completed." -Verbose