top of page

Fixing NuGet error: Unable to load the service index for source

One of the most common errors we face while working on a old project is build failure ,

this happens and the error logs are clearly saying what needs to be done.


some things we can do to solve the issue :


  • Solution 1: check NuGet restore option in VS and check for the source :

the below settings should solve most of the issues with old project restore :


URL is : http://api.nuget.org/v3/index.json



  • Solution 2 : Deleting %AppData%\Roaming\NuGet\NuGet.Config and restarting VS.


  • Solution 3 : Use a NuGet config file. To work around this, Try creating a new nuget.config file and populate it with the basic content it needs for the project to work. Here's the basic nuget.config file sample.

<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><clear /><add key="NuGet Public" value="https://api.nuget.org/v3/index.json" /></packageSources></configuration>

If you have a better approach do reach out in the comment section below

85 views0 comments
bottom of page