How do I get NuGet into my list of package managers?

Falanga, Rod, DOH 245 Reputation points
2025-03-10T17:49:36.2366667+00:00

I'm working with a loaner laptop, but I've got to use it for now, until they give me a permanent solution.

Anyway, I was trying to add a NuGet package to a .NET 8 web application I've been working on. Unfortunately, all VS 2022 will let me see if Microsoft Visual Studio Offline Packages. In Options, under NuGet Package Manager I see 4 subsections:

  • General
  • Configuration Files
  • Package Sources
  • Package Source Mapping.

It seems to me like Package Sources is the correct place I should enter NuGet, but I don't know what the URL is. And when I press the plus button ("+") all I'm given is "Package source https://packagesource", which to me doesn't look right. I need help, please.

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,111 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dou Xu-MSFT 400 Reputation points Microsoft External Staff
    2025-03-11T04:38:46.6733333+00:00

    Hello Falanga, Rod, DOH,

    Welcome to Microsoft Q&A forum.

    By default, NuGet uses the official NuGet.org source . This source contains a vast repository of publicly available package.

    https://api.nuget.org/v3/index.json
    

    enter image description here

    You can also add custom package sources to the NuGet.config file. This is useful for using internal feeds or other external source. Usually located in this location.

    C:\Users\your user name\AppData\Roaming\NuGet
    

    For example:

     <packageSources>
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
      </packageSources>
    

    Docs Referred:

    sources command (NuGet CLI) Best Regards,

    Dou


    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.

    0 comments No comments

Your answer

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