Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet Package Manager error: The remote name could not be resolved

I am using version 1.4 and getting this error:

The remote name could not be resolved: go.microsoft.com

Here are the URLs for the nuget package:

https://go.microsoft.com/fwlink/?LinkID=206669

Am i missing something here? It was working fine couple of weeks earlier.

like image 723
Asdfg Avatar asked Jul 25 '11 16:07

Asdfg


People also ask

How do I fix a NuGet package error?

Quick solution for Visual Studio usersSelect the Tools > NuGet Package Manager > Package Manager Settings menu command. Set both options under Package Restore. Select OK. Build your project again.

How do I run a NuGet package restore to generate this file?

After you enable package restore in Options, you can right-click the solution in Solution Explorer and select Restore NuGet Packages to restore packages anytime. If you enabled automatic restore in Options, Package Restore happens automatically when you create a project from a template or build a project.


2 Answers

ipconfig /flushdns at the command prompt fixed it for me.

like image 55
Geoff Johnson Avatar answered Oct 13 '22 00:10

Geoff Johnson


I had to add a new package source using the following location:

http://packages.nuget.org

Click on settings in the package manager to manage the sources.

like image 26
Peter C Avatar answered Oct 13 '22 01:10

Peter C