Adding vswhere to tool install

This commit is contained in:
Tim Heuer
2020-02-01 11:18:06 -08:00
parent 41ff3234c5
commit 2515037b79
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
################################################################################
## 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 = $(vswhere)
$Description = @"
_Version_: $VswhereVersion<br/>
* PATH: contains location of vswhere.exe
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description