NuGet restore failed – Asp.Net Core

After battling with this for an hour, i though this might help anyone with the same problem. I am not entirely sure how this fixed the problem, but it did.

 

After updating the NuGet package manager, i created a simple Asp.NET Core 1.0 project and tried to compile it. This resulted in multiple errors that looked like this:

 

“NuGet restore failed. Response status code does not indicate success: 404… “

 

I added another API endpoint for NuGet to search for packages, and it did the trick.
The URL is: https://api.nuget.org/v3/index.json

 

NOTE: If you are using any private repositories that are currently unavailable within your network, then you might need to disable them in Visual Studio NuGet feeds settings.

 

As i understand, this is the URL you should use for NuGet v3 and Visual Studio 2015.

I updated to NuGet v3 but did not add the additional repository URL.

 

 

About Shonn Lyga

Obsessed with anything and everything in Software Engineering, Technology and Science
This entry was posted in .NET Core and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s