From d562398bff1ac636c8b3693c7ebd9d532e6512bb Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 23 Sep 2017 19:20:43 +0000 Subject: [PATCH] Check for a powershell version >= 3 --- make.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/make.ps1 b/make.ps1 index 8603761..9f63943 100644 --- a/make.ps1 +++ b/make.ps1 @@ -233,6 +233,13 @@ function ParseConfigFile($fileName) ############################################################### ############################ Main ############################# ############################################################### +if ($PSVersionTable.PSVersion.Major -clt 3) +{ + echo "The makefile requires Powershell version 3 or higher." + echo "Please download and install the latest Windows Management Framework version from Microsoft." + WaitForInput +} + if ($args.Length -eq 0) { echo "Command list:"