Merge pull request #1592 from dmitry-shibanov/v-dmshib/fix-dotnet-tests

Fix dot net test issue with 5.0 version
This commit is contained in:
Maxim Lobanov
2020-09-16 09:30:47 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ function InstallAllValidSdks()
# Consider all channels except preview/eol channels. # Consider all channels except preview/eol channels.
# Sort the channels in ascending order # Sort the channels in ascending order
$dotnetChannels = $dotnetChannels.'releases-index' | Where-Object { (!$_."support-phase".Equals('preview') -and !$_."support-phase".Equals('eol')) } | Sort-Object { [Version] $_."channel-version" } $dotnetChannels = $dotnetChannels.'releases-index' | Where-Object { (!$_."support-phase".Equals('preview') -and !$_."support-phase".Equals('eol') -and !$_."support-phase".Equals('rc')) } | Sort-Object { [Version] $_."channel-version" }
# Download installation script. # Download installation script.
$installationName = "dotnet-install.ps1" $installationName = "dotnet-install.ps1"

View File

@@ -1,6 +1,6 @@
$releaseIndexUrl = "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json" $releaseIndexUrl = "https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases-index.json"
$dotnetChannels = (New-Object system.net.webclient).DownloadString($releaseIndexUrl) | ConvertFrom-Json $dotnetChannels = (New-Object system.net.webclient).DownloadString($releaseIndexUrl) | ConvertFrom-Json
$dotnetVersions = $dotnetChannels.'releases-index' | Where-Object { (!$_."support-phase".Equals('preview') -and !$_."support-phase".Equals('eol')) } | Select-Object -ExpandProperty "channel-version" $dotnetVersions = $dotnetChannels.'releases-index' | Where-Object { (!$_."support-phase".Equals('preview') -and !$_."support-phase".Equals('eol') -and !$_."support-phase".Equals('rc')) } | Select-Object -ExpandProperty "channel-version"
Describe "Dotnet SDK" { Describe "Dotnet SDK" {