Merge pull request #1799 from mwrock/mw/actionable

Provide a more actionable message when vcvarsall.bat is missing
This commit is contained in:
Andy Schwartzmeyer authored and GitHub committed 2016-08-16 09:42:18 -07:00
commit a6ad886361
1 file changed
+1 -1
+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