8

I am using the current VS Code (1.53.2) on Win 10

Every time I run it, I get this message:

You have an older version of PackageManagement known to cause issues with the PowerShell extension. Would you like to update PackageManagement (You will need to restart the PowerShell extension after)?

I have done the update (which appears to run cleanly), restarted, all that, but this just keeps coming up.

How to resolve all the way?

Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112
  • Give the instructions on this page a try to update PackageManagement - https://www.thomasmaurer.ch/2019/02/update-powershellget-and-packagemanagement/ – Daniel Feb 20 '21 at 00:56

2 Answers2

2

In my case only manual installing of latest stable PackageManagement and PowerShellGet modules from https://www.powershellgallery.com helped. See this guide https://learn.microsoft.com/ru-ru/powershell/scripting/gallery/how-to/working-with-packages/manual-download?view=powershell-7.1

Anton Krouglov
  • 3,077
  • 2
  • 29
  • 50
  • 1
    Here's the English version of the guide: https://learn.microsoft.com/en-us/powershell/scripting/gallery/how-to/working-with-packages/manual-download?view=powershell-7.1 – John Pankowicz Aug 18 '21 at 17:13
  • I already had the latest PackageManagement. I completed the steps in the guide (install latest NuGet provider, ensure use of TSL 1.2, update PowerShellGet) and it updated PowerShellGet from 2.2 to 2.2.5. The message, "Old version of PackageManagement ...." went away. I just needed the latest version of PowerShellGet. – John Pankowicz Aug 18 '21 at 18:19
1

After digging a lot, the problem set migrated to a more specific set of issues related to updates in the powershell package and package management sphere.

This thread describes the more specific problem, and has steps that led to the resolution.

Jonesome Reinstate Monica
  • 6,618
  • 11
  • 65
  • 112