Detect if powershell version is suitable for restoring build tools
authorAndy Ayers <andya@microsoft.com>
Fri, 15 Apr 2016 21:03:46 +0000 (14:03 -0700)
committerAndy Ayers <andya@microsoft.com>
Sat, 16 Apr 2016 00:58:57 +0000 (17:58 -0700)
commitc5be17651cdbe0c60833b2953bae828acb1a0e60
tree129d504d378a961a6aaf781cea91ddf0b3279e47
parent02d18c9eceeb3c4e80c5c59dbc8103294adc86af
Detect if powershell version is suitable for restoring build tools

Powershell v3 or higher is required to decompress the build tools
bundle. Windows 7 typically has v2 installed.

Detect earlier versions and fail with a pointer to the
build prerequisites and a download link for an updated version.

Also propagate failures out of init-tools.cmd. The last step
of this is unchecked since the build tool init script can return
nonzero status even on success.

See #3510.
Documentation/building/windows-instructions.md
build.cmd
init-tools.cmd