mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
Refactor Get-DotnetFrameworkTools and allow multiple SDKs installation (#5464)
This commit is contained in:
@@ -267,12 +267,15 @@ Get-DotnetRuntimes | Foreach-Object {
|
||||
}
|
||||
|
||||
$markdown += New-MDHeader ".NET Framework" -Level 3
|
||||
$frameworks = Get-DotnetFrameworkTools
|
||||
$markdown += "``Type: Developer Pack``"
|
||||
$markdown += New-MDNewLine
|
||||
$markdown += "``Location $($frameworks.Path)``"
|
||||
$markdown += New-MDNewLine
|
||||
$markdown += New-MDList -Lines $frameworks.Versions -Style Unordered
|
||||
Get-DotnetFrameworkTools | Foreach-Object {
|
||||
$path = $_.Path
|
||||
$versions = $_.Versions
|
||||
$markdown += "``Location: $path``"
|
||||
$markdown += New-MDNewLine
|
||||
$markdown += New-MDList -Lines $versions -Style Unordered
|
||||
}
|
||||
|
||||
$markdown += New-MDHeader ".NET tools" -Level 3
|
||||
$tools = Get-DotnetTools
|
||||
|
||||
Reference in New Issue
Block a user