Skip to content

Commit 1a14613

Browse files
committed
Check for VS Build tools
1 parent 23cbc5b commit 1a14613

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
@echo off
22
setlocal
3+
if "%VS120COMNTOOLS%"=="" GOTO NOTOOLS
34
call "%VS120COMNTOOLS%\VsDevCmd.bat"
45
msbuild .\PSScriptAnalyzer.sln
56
if NOT [%ERRORLEVEL%]==[0] pause
7+
8+
GOTO END
9+
10+
:NOTOOLS
11+
echo The Visual Studio 2012 tools are not installed
12+
pause
13+
14+
:END
615
endlocal

0 commit comments

Comments
 (0)