Skip to content

Commit

Permalink
Update dotnet metadata for next channel for automated updates (PowerS…
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatwardhan committed Apr 29, 2020
1 parent 0087f78 commit 20a1e1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DotnetRuntimeMetadata.json
@@ -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"
}
}
6 changes: 5 additions & 1 deletion tools/UpdateDotnetRuntime.ps1
Expand Up @@ -3,6 +3,8 @@

[CmdletBinding()]
param (
[Parameter()]
[string]$SDKVersionOverride
)

<#
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 20a1e1c

Please sign in to comment.