2020-02-01 11:18:06 -08:00
|
|
|
################################################################################
|
|
|
|
|
## 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"
|
2020-03-05 13:02:18 +03:00
|
|
|
$VswhereVersion = (Get-Command -Name vswhere).FileVersionInfo.ProductVersion
|
2020-02-01 11:18:06 -08:00
|
|
|
|
|
|
|
|
$Description = @"
|
|
|
|
|
_Version_: $VswhereVersion<br/>
|
|
|
|
|
* PATH: contains location of vswhere.exe
|
|
|
|
|
"@
|
|
|
|
|
|
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|