I am unable to connect to a privately hosted NuGet feed from VS2022. I can access the same feed from the browser.

Tushar V. Pathare 0 Reputation points
2025-10-23T04:33:10.2166667+00:00

I have tried this numerous times with all possible options. I still cannot connect to the private feed and restore packages. How do I resolve this issue?

User's image

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Thao Tran 95 Reputation points
    2025-10-23T08:07:05.4433333+00:00

    Hello, how did you connect to the private feed and restore packages?

    You can run your VS2022 as administrator and add a private package source as the following steps:

    Go to Tools > Options > NuGet Package Manager > Package Sources > select “+” > edit the Name and Source > Update. 

    Please open your NuGet.Config file under %appdata%\NuGet and check that the package source section is properly added. 

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.