Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring nuget packages in VS 2022.

Munjal, Kanha (Gurugram) 5 Reputation points
2024-06-11T10:51:54.7633333+00:00

Hi All,

I am getting the error "Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring Nuget packages in VS 2022. I have tried to delete Nuget config file as well but it did not help. Can anyone please provide assistance?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,923 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 32,376 Reputation points Microsoft Vendor
    2024-06-11T12:39:59.11+00:00

    Hi @Munjal, Kanha (Gurugram) ,

    You can try clearing the NuGet cache using the command nuget locals all -clear.

    Or try updating your vs2022 to the latest version.

    If you're behind a proxy, ensure your proxy settings are correctly configured.

    • Open Visual Studio.
    • Go to Tools > Options > Network.
    • Configure your proxy settings accordingly.

    Also check nuget.config reference about proxy.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. test 0 Reputation points Microsoft Employee
    2024-09-20T16:18:53.7133333+00:00

    What's the cause of this issue?

    0 comments No comments

Your answer