You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Given the above configuration, VS2015 is able to browse NuGet packages without issue. PowerShell, however, is unable to search the NuGet repositories due to incorrect location URL (api v3). This results in the following HTTP trace when executing Find-Package from a PowerShell Session:
(Sidenote - what's with the request for "Foobar" to the Powershell Gallery?)
Now, change the NuGet location in for the PowerShell NuGet provider to the correct api v2 and restart the PowerShell session:
PowerShell is now able to search NuGet repositories correctly - but note that VS2015 (after restart) is now broken:
[nuget.org] Unable to load the service index for source https://www.nuget.org/api/v2.
The content at 'https://www.nuget.org/api/v2' is not a valid JSON object.
Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
While I'm aware OneGet doesn't currently support the NuGet API v3, it seems unexpected that it would break other applications (i.e., VS).