From ff5060b449990bf264c1b0d168a116a5e54e6138 Mon Sep 17 00:00:00 2001 From: Matt Wrock Date: Sun, 14 Aug 2016 11:30:54 -0700 Subject: [PATCH] provide a more actionable message when vcvarsall.bat is missing --- build.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 4f5ee151a..3b69e4f7e 100644 --- a/build.psm1 +++ b/build.psm1 @@ -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