mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
25 lines
727 B
PowerShell
25 lines
727 B
PowerShell
################################################################################
|
|
## File: Validate-VSWhere.ps1
|
|
## Desc: Validate vswhere
|
|
################################################################################
|
|
|
|
if(Get-Command -Name 'vswhere')
|
|
{
|
|
Write-Host "vswhere $(vswhere) on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host "vswhere is not on path"
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "VSWhere"
|
|
$VswhereVersion = (Get-Command -Name vswhere).FileVersionInfo.ProductVersion
|
|
|
|
$Description = @"
|
|
_Version_: $VswhereVersion<br/>
|
|
* PATH: contains location of vswhere.exe
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description |