Microsoft Visual Studio Professional 2017
Version 15.2 (26430.16) Release
VisualStudio.15.Release/15.2.0+26430.16
Microsoft .NET Framework
Version 4.6.01055
Windows 7 - Version 6.1.7601 Service Pack 1 Build 7601
When I open Visual Studio the package manager console opens and immediately the following appears
Package Manager Console Host Version 4.2.0.2457
Type 'get-help NuGet' to see all available NuGet commands.
PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio.
From the Package Manager I ran
PM> $PSVersionTable.PSVersion
Major Minor Build Revision
2 0 -1 -1
But in PowerShell started from the Windows menu -
PS C:> $PSVersionTable.PSVersion
Major Minor Build Revision
4 0 -1 -1
VS 2017 version 15.3 shipped on 8/14/2017 with the fix for bug #5294 . So this should be fixed, as well, since this is a duplicate. (note, we also fixed for VS2015 in version 3.6.0 available for download at http://nuget.org/downloads)
My Visual Studio 2017 15.4.3 (Windows 10.0.16299.19) contains this error in Package Manager Console: "PM> PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio." So I'm not able to work with it. I found different way how to create Model as Database-First in Asp Net Core Api project.
I use:
EF Core Power Tools
https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools
Function called "Reverse Engineer". (Right click on project in Solution Explorer > EF Core Power Tools > Reverse Engineer)
@MSAAAAuto - What version of PowerShell is installed on your machine?
If I run PowerShell from the Windows Start:
PS C:\WINDOWS\system32> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.16299.19
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.19
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
If I run PowerShell in Package Manager Console in Visual Studio 2017 15.4.3, which was installed last week 9. November:
PM> $PSVersionTable
Name Value
---- -----
PSVersion 2.0
PSCompatibleVersions {1.0, 2.0}
BuildVersion 6.1.7600.16385
CLRVersion 4.0.30319.42000
WSManStackVersion 2.0
PSRemotingProtocolVersion 2.1
SerializationVersion 1.1.0.1
Perhaps this information from the PMC can also help:
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
Package Manager Console Host Version 4.4.0.4475
Type 'get-help NuGet' to see all available NuGet commands.
PM>
Can I fix it temporarily?
Can I change something manually in the registry or in a configuration file or anywhere else to start using the latest version of PowerShell?
Some workaround?
Please :-)
Just popped up for me too - ran fine, then windows did an 'update' (like one each night for 3 nights in a row), then today I noticed I can't run EF commands and I get the same error message and version numbers as prior posters. VS version 15.3.5, so I'll try and update to 15.6.4 and report back.
Updated to latest VS, 15.6.4 and the problem persists. This hurts
Happening for me too with Visual Studio 15.7.3
Happening for me too with Visual Studio 15.7.6
This somehow got automatically for me when I went to 15.8
Getting this error with VS 15.8.1
Getting this with 15.8.2 as well
15.8.6 same problem