Skip to content

Commit 56c21c9

Browse files
authored
Add support for .NET SDKs 8 and 10 in script
1 parent c324cce commit 56c21c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

workload/scripts/workload-install.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ $LatestVersionMap = [ordered]@{
6262
"$ManifestBaseName-9.0.100" = "10.0.104";
6363
"$ManifestBaseName-9.0.200" = "10.0.110";
6464
"$ManifestBaseName-9.0.300" = "10.0.111";
65+
"$ManifestBaseName-10.0.100" = "10.0.123";
6566
}
6667

6768
function New-TemporaryDirectory {
@@ -297,7 +298,7 @@ if (Get-Command $DotnetCommand -ErrorAction SilentlyContinue)
297298
{
298299
if ($UpdateAllWorkloads.IsPresent)
299300
{
300-
$InstalledDotnetSdks = Invoke-Expression "& '$DotnetCommand' --list-sdks | Select-String -Pattern '^6|^7'" | ForEach-Object {$_ -replace (" \[.*","")}
301+
$InstalledDotnetSdks = Invoke-Expression "& '$DotnetCommand' --list-sdks | Select-String -Pattern '^6|^7|^8|^9|^10'" | ForEach-Object {$_ -replace (" \[.*","")}
301302
}
302303
else
303304
{

0 commit comments

Comments
 (0)