Unable to restore / remove / update a NuGet package because the mentioned version is no longer available

前端 未结 5 513
野性不改
野性不改 2021-02-06 21:11

I\'m trying to give the SignalR Sample a test drive but it seems it references an old version of SignalR which is no longer available. The actual problem is that NuGet cannot re

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 22:01

    There's an easier solution, if you know the versions that currently exist in the feed. This solution can fix every package in every project.

    • Open packages.config file (if you have more than one project, do this for every packages.config file)
    • Update versions to the correct ones (i.e. change the version attribute)
    • In the Package Manager Console, type Update-Package -Reinstall

    Hope it helps

提交回复
热议问题