Nuget没有重新安装包

bur*_*1ce 21 nuget

我已将目标.net框架修改为使用4.5从4.0开始.我收到了来自nuget的消息,包需要重新安装才能运行Update-Package -Reinstall -ProjectName https://localhost/SomeWebProject/.当nuget正在执行时,它吐出了黄色警告标志,如下所示:

Skipped reinstalling package 'NLog 3.1.0.0' in project 'SomeWebProject' because the package does not exist in the package source.
Run Code Online (Sandbox Code Playgroud)

为什么我的包没有重新安装?我进入了我的包文件夹并验证了NLog 3.1.0.0的存在!

Int*_*eXX 44

事实证明,解决方案隐藏在明显的视野中.

我们所要做的就是在Package Manager Console窗口中设置Package Source.(Matt Ward指出它的信用.)

在此输入图像描述