Update PowerShell version in Visual Studio 2017

Viewed 7071

I ran the following in the Visual Studio 2017 Package Manager Console -

PM> $PSVersionTable.PSVersion

 Major  Minor  Build  Revision
 -----  -----  -----  -------- 
 2      0      -1     -1

When I run the same command from a PowerShell window I get -

PS C:\>  $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1

This is causing me a problem because I want to run something in the package manager that requires PowerShell 3 or above.

2 Answers
Related