Add check and instruction to build.cmd to run from normal prompt
authorJeroen Janssen <jeroen.janssen@gmail.com>
Sat, 14 Mar 2015 09:36:02 +0000 (10:36 +0100)
committerJeroen Janssen <jeroen.janssen@gmail.com>
Sat, 14 Mar 2015 09:36:02 +0000 (10:36 +0100)
build.cmd

index 78dd6a0..1b3116f 100644 (file)
--- a/build.cmd
+++ b/build.cmd
@@ -17,6 +17,11 @@ set "__RootBinDir=%__ProjectDir%\binaries"
 set "__LogsDir=%__RootBinDir%\Logs"
 set __MSBCleanBuildArgs=
 
+:: Ensure we are not already running in a development prompt
+if "%VisualStudioVersion%" == "" goto Arg_Loop
+echo Please make sure to run %0 from a normal prompt (not from a development prompt!) 
+goto :eof
+
 :Arg_Loop
 if "%1" == "" goto ArgsDone
 if /i "%1" == "/?" goto Usage