provide a more actionable message when vcvarsall.bat is missing

This commit is contained in:
Matt Wrock
2016-08-14 11:30:54 -07:00
parent 9ab60d6621
commit ff5060b449
+1 -1
View File
@@ -139,7 +139,7 @@ function Start-PSBuild {
$vcVarsPath = (Get-Item(Join-Path -Path "$env:VS140COMNTOOLS" -ChildPath '../../vc')).FullName
if ((Test-Path -Path $vcVarsPath\vcvarsall.bat) -eq $false) {
throw "Could not find Visual Studio vcvarsall.bat at" + $vcVarsPath
throw "Could not find Visual Studio vcvarsall.bat at $vcVarsPath. Please ensure the optional feature 'Common Tools for Visual C++' is installed."
}
# setup msbuild configuration