【问题标题】:Install-Package : Unable to find package 'CommonServiceLocator.MefAdapter安装包:找不到包“CommonServiceLocator.MefAdapter”
【发布时间】:2015-10-15 10:20:04
【问题描述】:

我喜欢在我的 Visual Studio Community 2015 项目中包含 CommonServiceLocator.MefAdapter。 当我尝试安装软件包时:https://www.nuget.org/packages/CommonServiceLocator.MefAdapter/1.0.0

我得到错误:

PM> 安装包 CommonServiceLocator.MefAdapter 安装包:找不到包“CommonServiceLocator.MefAdapter” 在行:1 字符:17 + 安装包

【问题讨论】:

    标签: c# nuget-package


    【解决方案1】:

    检查您的 NuGet 服务器路径是否正确。

    你可以这样做:工具->选项->NuGet包管理器(使用搜索)。检查你的路径是https://api.nuget.org/v3/index.json

    我已经创建了一个项目,我可以在那里安装这个包。

    【讨论】:

      【解决方案2】:

      如果您为 Nuget 注册了多个源,则在 Visual Studio 2015 中,您可能需要从包管理器控制台左上角的下拉列表中选择正确的源。

      【讨论】:

        【解决方案3】:

        检查你的 NuGet 包管理器 如果发生这种情况可能是空的 因此添加这个

        https://api.nuget.org/v3/index.json 在源 并命名 nuget.org

        点击更新并检查它是否有效。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-04-05
          • 2018-05-24
          • 2020-10-13
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多