TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

nuget.exe fails with Response: Invalid URI: The hostname could not be parsed.

May 20th, 2015 · No Comments · NuGet

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>.org

Correct example:
http://nuget.<server>.org/nuget

(Solution based on: http://nuget.codeplex.com/discussions/361846/)

Tags:

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment

*