Search code examples
c#nugetnuget-packagenuget-package-restore

An error occurred while trying to restore packages. Please try again


I am trying to restore the missing nuget packages and it keeps giving me this Error:

An error occurred while trying to restore packages. Please try again.

Any experience solving this? How can I find out what exactly is causing the error?


Solution

    1. Make sure you upgrade to the latest NuGet (http://docs.nuget.org/docs/start-here/installing-nuget).
    2. Make sure you're doing package restore "The Right Way" http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html

    That should resolve the issue.