skip to Main Content

I found this message while installing some packages in Visual Studio 2022. enter image description here

So I clicked "Configure" the "Add" I found "nuget.org" but then I clicked on it, and the Add button not turned off.enter image description here

2

Answers


  1. Select a package from the list to show it in the Details Pane.
    Press the Configure button to open the Package Source Mappings options page.

    From the Visual Studio Options Dialog
    Go to the Tools menu in the main Visual Studio toolbar, and choose NuGet Package Manager -> Package Manager Settings.
    Navigate to the Package Source Mappings page.
    Press the Add button in the Package Source Mappings page to open the Add Package Source Mappings dialog.
    Enter a Package ID or Package Pattern, and select one or more package source(s) by toggling the checkbox for your desired source(s).
    The Package Source Mapping options page will show the newly created source mapping.
    Press OK on the Options Dialog to save changes to the applicable nuget.config.
    The NuGet Package Manager window will refresh and reflect the new status of the selected package’s source mappings.
    If you still have any issue you can refer this doc

    Login or Signup to reply.
  2. You have to also specify a package (name) pattern of packages that should be mapped to the selected source. You can use * for all packages. See: https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping#enabling-package-source-mapping

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search