Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to upgrade nuget provider downgrades it #507

Open
JVimes opened this issue Jul 27, 2021 · 2 comments
Open

Attempt to upgrade nuget provider downgrades it #507

JVimes opened this issue Jul 27, 2021 · 2 comments

Comments

@JVimes
Copy link

JVimes commented Jul 27, 2021

I followed these instructions, which said:

Before updating PowerShellGet, you should always install the latest NuGet provider. From an elevated PowerShell session, run the following command.

Install-PackageProvider -Name NuGet -Force

But that command appears to downgrade my NuGet provider from 3.0.0.1 to 2.8.5.208:

PS> Write-Host Before: (Get-PackageProvider NuGet).Version
>> Install-PackageProvider NuGet -Force | Out-Null
>> Write-Host After: (Get-PackageProvider NuGet).Version
Before: 3.0.0.1
After: 2.8.5.208

Am I doing something wrong?

My shell info
PSVersion                      5.1.19041.1023
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1023
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@alerickson
Copy link
Collaborator

No, not at all, those instructions are a bit outdated and there are some issues with using 3.0.0.1, so I would highly suggest staying with 2.8.5.x. I'll update the instructions to reflect this.

@JVimes
Copy link
Author

JVimes commented Jul 29, 2021

Thank you, @alerickson! Any idea how I ended up with 3.0.0.1? It might be nice if it were out of circulation until fixed. The issue I ran into took a day for me to figure out ("Unable to resolve package source" for password protected PS repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants