原文地址:传送门

这种是nuget无法还原的问题。解决问题的方法:

在项目文件所在的目录下创建文件:NuGet.Config

里面内容:

.net core 2.0 报错:error NU1102: Unable to find package ...
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <clear />
    <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
    <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>
.net core 2.0 报错:error NU1102: Unable to find package ...

然后再项目文件所在目录下进入cmd,输入:

dotnet restore

问题解决。

相关文章:

  • 2021-06-25
  • 2022-12-23
  • 2021-06-16
  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2021-09-15
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-06-24
相关资源
相似解决方案