The Problem
- You are using a custom NuGet feed
- when running nuget.exe you receive the following error message:
Response: Invalid URI: The hostname could not be parsed.
The Solution
Double-check the URL you are using (for example, try opening it on a browser). Typically, the URL should end with /nuget (for some servers like ProGet with /nuget/<feedname>).
Incorrect example:
http://nuget.<server>.orgCorrect example:
http://nuget.<server>.org/nuget
(Solution based on: http://nuget.codeplex.com/discussions/361846/)
Hi, good post. I’m having the same problem, but directly with the official Nuget server:
Unable to load the service index for source https://api.nuget.org/v3/index.json.
Invalid URI: The hostname could not be parsed.
Any idea where to investigate?
Thanks.