c# - Nuget 包 "Not available in this source"... 但 VS 仍然知道它?

标签 c# visual-studio asp.net-core nuget

我在使用 Npgsql.EntityFrameworkCore.PostgreSQL 源代码时遇到了一个我以前从未见过的屏幕,寻找阻止我的应用程序正常运行的错误。

就目前情况而言,我什至无法构建源代码。

screenshot

我无法构建这段代码,因为找不到包;然而,Visual Studio 知道最新版本是我想要的。这怎么可能?我可以做什么(如果有的话)来安装软件包?

最佳答案

感谢@LeoLiu-MSFT 在我的例子中,除了 Microsoft Visual Studio Offline 包,我没有看到任何其他选项,所以我需要自己添加。

  1. 点击设置图标

enter image description here

  1. 如果不允许写入编辑现有的,下面的窗口将打开写入 NuGet 详细信息
  nuget.org
  https://api.nuget.org/v3/index.json

enter image description here

关于c# - Nuget 包 "Not available in this source"... 但 VS 仍然知道它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49718794/

相关文章:

asp.net-core - 在 VS 2019 预览版中没有可用于使用 .Net Core 3.0 的选项

dependency-injection - 当流畅的调度程序作业调用方法时,无法访问已处置的对象异常

c# - 构建将部分透明图像像素变为黑色

c# - 使用 asp-page TagHelper 时链接未呈现

c# - TextBox TextChanged 事件问题

c# - 将 fiddler 与 Windows 身份验证结合使用

visual-studio - 容器和自定义目录中的 Visual C++ Build Tools 2015

c++ - 如何判断当前使用特定DLL的进程

c++ - 如何在 Windows 上构建 Apache ActiveMQ-CPP(和 APR)?

c# - .AspNetCore.相关性。未找到国家属性(property)。未知位置