Update metadata and script to enable consuming .NET daily builds (#14940)

This commit is contained in:
Aditya Patwardhan 2021-03-05 18:08:15 -08:00 committed by GitHub
parent 631e96af4c
commit 8cc19fab30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
{ {
"sdk": { "sdk": {
"channel": "release/6.0.1xx-preview1", "channel": "release/6.0.1xx-preview2",
"packageVersionPattern": "6.0.0-preview.1", "packageVersionPattern": "6.0.0-preview.2",
"sdkImageVersion": "6.0.100", "sdkImageVersion": "6.0.100",
"nextChannel": "net6/preview1" "nextChannel": "6.0.1xx-preview2/daily"
}, },
"internalfeed" : { "internalfeed" : {
"url": null "url": null

View File

@ -169,7 +169,7 @@ function Get-DotnetUpdate {
} }
try { try {
$latestSDKversion = [System.Management.Automation.SemanticVersion] (Invoke-RestMethod -Uri "http://aka.ms/dotnet/$nextChannel/Sdk/productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() }) $latestSDKversion = [System.Management.Automation.SemanticVersion] (Invoke-RestMethod -Uri "http://aka.ms/dotnet/$nextChannel/sdk-productVersion.txt" -ErrorAction Stop | ForEach-Object { $_.Trim() })
$currentVersion = [System.Management.Automation.SemanticVersion] (( Get-Content -Path "$PSScriptRoot/../global.json" -Raw | ConvertFrom-Json).sdk.version) $currentVersion = [System.Management.Automation.SemanticVersion] (( Get-Content -Path "$PSScriptRoot/../global.json" -Raw | ConvertFrom-Json).sdk.version)
if ($latestSDKversion -gt $currentVersion) { if ($latestSDKversion -gt $currentVersion) {