mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 14:26:48 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,46 +1,46 @@
|
||||
################################################################################
|
||||
## File: Validate-DotnetSDK.ps1
|
||||
## Desc: Validate dotnet
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'dotnet')
|
||||
{
|
||||
Write-Host "dotnet $(dotnet --version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "dotnet is not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = ".NET Core"
|
||||
|
||||
$Description = @"
|
||||
The following runtimes and SDKs are installed:
|
||||
|
||||
_Environment:_
|
||||
* PATH: contains location of dotnet.exe
|
||||
|
||||
_SDK:_
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
$SdkList =(Get-ChildItem "C:\Program Files\dotnet\sdk") | Where { $_.Name -match "[0-9].*" } | Sort-Object -Descending | % { "* $($_.Name) $($_.FullName)" }
|
||||
|
||||
Add-ContentToMarkdown -Content $SdkList
|
||||
|
||||
|
||||
|
||||
$Runtimes = @"
|
||||
|
||||
_Runtime:_
|
||||
"@
|
||||
|
||||
Add-ContentToMarkdown -Content $Runtimes
|
||||
|
||||
$RuntimeList =(Get-ChildItem "C:\Program Files\dotnet\shared\Microsoft.NETCore.App") | Where { $_.Name -match "[0-9].*" } | Sort-Object -Descending | % { "* $($_.Name) $($_.FullName)" }
|
||||
|
||||
Add-ContentToMarkdown -Content $RuntimeList
|
||||
|
||||
################################################################################
|
||||
## File: Validate-DotnetSDK.ps1
|
||||
## Desc: Validate dotnet
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'dotnet')
|
||||
{
|
||||
Write-Host "dotnet $(dotnet --version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "dotnet is not on path"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = ".NET Core"
|
||||
|
||||
$Description = @"
|
||||
The following runtimes and SDKs are installed:
|
||||
|
||||
_Environment:_
|
||||
* PATH: contains location of dotnet.exe
|
||||
|
||||
_SDK:_
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
$SdkList =(Get-ChildItem "C:\Program Files\dotnet\sdk") | Where { $_.Name -match "[0-9].*" } | Sort-Object -Descending | % { "* $($_.Name) $($_.FullName)" }
|
||||
|
||||
Add-ContentToMarkdown -Content $SdkList
|
||||
|
||||
|
||||
|
||||
$Runtimes = @"
|
||||
|
||||
_Runtime:_
|
||||
"@
|
||||
|
||||
Add-ContentToMarkdown -Content $Runtimes
|
||||
|
||||
$RuntimeList =(Get-ChildItem "C:\Program Files\dotnet\shared\Microsoft.NETCore.App") | Where { $_.Name -match "[0-9].*" } | Sort-Object -Descending | % { "* $($_.Name) $($_.FullName)" }
|
||||
|
||||
Add-ContentToMarkdown -Content $RuntimeList
|
||||
|
||||
|
||||
Reference in New Issue
Block a user