Skip to content

Commit d739f53

Browse files
author
Kapil Borle
committed
Check Visual Studio 2015 for build
1 parent 02d906b commit d739f53

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

build.cmd

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
@echo off
22
setlocal
3+
if "%VS140COMNTOOLS%"=="" GOTO VS12TOOLS
4+
call "%VS140COMNTOOLS%\VsDevCmd.bat"
5+
GOTO BUILD
6+
7+
:VS12TOOLS
38
if "%VS120COMNTOOLS%"=="" GOTO NOTOOLS
49
call "%VS120COMNTOOLS%\VsDevCmd.bat"
10+
11+
:BUILD
512
set solutionPath=%1
613
set configuration=%2
714
set target=%3
815
if "%target%" == "clean" GOTO CLEAN
916
msbuild %solutionPath% /p:Configuration=%configuration% /l:FileLogger,Microsoft.Build.Engine;logfile=PSScriptAnalyzer_Build.log;append=true
1017
GOTO END
1118

12-
:NOTOOLS
13-
echo The Visual Studio 2013 tools are not installed
14-
GOTO END
15-
1619
:CLEAN
1720
msbuild .\PSScriptAnalyzer.sln /p:Configuration=%configuration% /t:clean /l:FileLogger,Microsoft.Build.Engine;logfile=PSScriptAnalyzer_Build.log;append=true
21+
GOTO END
22+
23+
:NOTOOLS
24+
echo The Visual Studio 2013/2015 tools are not installed
1825

1926
:END
2027
endlocal

0 commit comments

Comments
 (0)