From 23cbc5bd4c2f6ad1fe0ea88415da662b60dc3c48 Mon Sep 17 00:00:00 2001 From: GoodOlClint Date: Wed, 6 May 2015 21:45:33 -0500 Subject: [PATCH 1/4] Added script to build module --- build.cmd | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 build.cmd diff --git a/build.cmd b/build.cmd new file mode 100644 index 000000000..10cff4ee4 --- /dev/null +++ b/build.cmd @@ -0,0 +1,6 @@ +@echo off +setlocal +call "%VS120COMNTOOLS%\VsDevCmd.bat" +msbuild .\PSScriptAnalyzer.sln +if NOT [%ERRORLEVEL%]==[0] pause +endlocal \ No newline at end of file From 1a146136df98747554ae7cf967a9c6418b4f3224 Mon Sep 17 00:00:00 2001 From: GoodOlClint Date: Thu, 7 May 2015 17:59:02 -0500 Subject: [PATCH 2/4] Check for VS Build tools --- build.cmd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.cmd b/build.cmd index 10cff4ee4..5097a90dd 100644 --- a/build.cmd +++ b/build.cmd @@ -1,6 +1,15 @@ @echo off setlocal +if "%VS120COMNTOOLS%"=="" GOTO NOTOOLS call "%VS120COMNTOOLS%\VsDevCmd.bat" msbuild .\PSScriptAnalyzer.sln if NOT [%ERRORLEVEL%]==[0] pause + +GOTO END + +:NOTOOLS +echo The Visual Studio 2012 tools are not installed +pause + +:END endlocal \ No newline at end of file From 2db020006bfb5fc1d0e214f24b94a74bb91165c1 Mon Sep 17 00:00:00 2001 From: GoodOlClint Date: Thu, 7 May 2015 17:59:44 -0500 Subject: [PATCH 3/4] Specify build configuration and logging --- build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cmd b/build.cmd index 5097a90dd..70dd889a3 100644 --- a/build.cmd +++ b/build.cmd @@ -2,7 +2,7 @@ setlocal if "%VS120COMNTOOLS%"=="" GOTO NOTOOLS call "%VS120COMNTOOLS%\VsDevCmd.bat" -msbuild .\PSScriptAnalyzer.sln +msbuild .\PSScriptAnalyzer.sln /p:Configuration=Debug /l:FileLogger,Microsoft.Build.Engine;logfile=PSScriptAnalyzer_Build.log;append=true if NOT [%ERRORLEVEL%]==[0] pause GOTO END From 6a8fbe8e60199019b9c66698c7378e5f469acc51 Mon Sep 17 00:00:00 2001 From: GoodOlClint Date: Thu, 7 May 2015 18:04:51 -0500 Subject: [PATCH 4/4] Corrected visual studio version name --- build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.cmd b/build.cmd index 70dd889a3..e51842115 100644 --- a/build.cmd +++ b/build.cmd @@ -8,7 +8,7 @@ if NOT [%ERRORLEVEL%]==[0] pause GOTO END :NOTOOLS -echo The Visual Studio 2012 tools are not installed +echo The Visual Studio 2013 tools are not installed pause :END