Update metadata and script to enable consuming .NET daily builds (#14940)
This commit is contained in:
parent
631e96af4c
commit
8cc19fab30
@ -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
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user