An error occurred while retrieving package metadata for ***

后端 未结 4 2210
轮回少年
轮回少年 2021-01-07 18:47

This has been asked many times before. The solution (which works for me) is to delete the *** package(s) from the packages.config file (this is enough), and from the package

相关标签:
4条回答
  • 2021-01-07 19:05

    Nothing worked out from these answers and comments but changing the desired version to be fetched in packages.config did the trick. If you'll relaunch Visual Studio then you'll see in the Manage NuGet Packages... that the dependency is updated. It didn't require from me to do it twice - this dependency has been updated based on the PackageReference of this NuGet https://www.nuget.org/packages/System.Net.Http/

    0 讨论(0)
  • 2021-01-07 19:15

    Update the Visual Studio Package Manager to the latest version using the below steps and the ongoing issue will disappear.

    1. In Visual Studio, from the "Tools" menu choose the "Extensions and Updates" option.
    2. From the dialog that appears, expand the "Updates" node from the tree at the left side.
    3. Select the "Visual Studio Gallery" option from the tree.
    4. Finally, look for the Package Manager update in the list of updates at the right side of the dialog and click the "Update" button beside it.
    0 讨论(0)
  • 2021-01-07 19:17

    I had the same issue with my visual studio 2015.

    But Uninstalling the Nuget Package Manager and re-installing the same worked for me.

    1. In Visual Studio, from the "Tools" menu choose the "Extensions and Updates" option.
    2. Top right "Search Installed" bar, sear ch for Nuget Package Manager
    3. Uninstall the Nuget Package Manager for Visual Studio 2015.
    4. Restart Visual Studio.
    5. Re-Install the same with the same steps.
    0 讨论(0)
  • 2021-01-07 19:25

    I had the same issue with my visual studio 2015.

    But Uninstalling the Nuget Package Manager and re-installing the same worked for me.

    In Visual Studio, from the "Tools" menu choose the "Extensions and Updates" option. Top right "Search Installed" bar, sear ch for Nuget Package Manager Uninstall the Nuget Package Manager for Visual Studio 2015. Restart Visual Studio. Re-Install the same with the same steps.

    close the visual studio and again open

    0 讨论(0)
提交回复
热议问题