我已将项目移到新机器上,无法访问名为SBD.Common的旧nuget程序包,该程序包本地存储在旧机器上。
我想从项目中卸载软件包
当我使用Manage Nuget Packages作为解决方案时,可以看到该软件包已安装,但在此源中不可用。
当我单击“卸载”按钮时,出现错误
An error occured while trying to restore the packages" Unable to find version '1.0.0' of 'SBD.Common'
c:\Program files(x86)\Microsoft SDKS\NugetPackages\:Package 'SBD.Common.1.0.0' is not found on source 'C:\Program Files(x86)\Microsoft SDKs\NuGetPackages\'
https://api.nuget.org/v3/index.json:Package 'SBD.Common.1.0.0' is not found
我如何告诉我的项目我不想在不访问该程序包的情况下还原该程序包?
这是我的Nuget.Config,位于C:\Users\MyName\AppData\Roaming\NuGet
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<disabledPackageSources>
<add key="Microsoft and .NET" value="true" />
</disabledPackageSources>
<packageRestore>
<add key="enabled" value="False" />
<add key="automatic" value="False" />
</packageRestore>
<bindingRedirects>
<add key="skip" value="False" />
</bindingRedirects>
</configuration>
我正在使用Nuget 3.4.4.1321版本
最佳答案
问题是我在packages.config中列出了文件
关于nuget - 如何卸载不可用的nuget软件包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40188620/