【问题标题】:Restoring NuGet fails with Rider-EAP on Mac OS X在 Mac OS X 上使用 Rider-EAP 恢复 NuGet 失败
【发布时间】:2016-03-25 09:04:20
【问题描述】:

我在 VS 中的 Windows 上创建了一个项目。在 Mac OS X 上克隆它并使用 JetBrains Rider-EAP 打开它后,我无法恢复 Nuget 包。

我无法安装或升级任何软件包。 Rider 为每个包抛出以下错误:

ReSharperHostException
     A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. One or more errors occurred. Package 'Newtonsoft.Json.8.0.3' already exists in project 'MovieLensMongo'
     --- EXCEPTION #1/5 [PackageAlreadyInstalledException]
     Message = “Package 'Newtonsoft.Json.8.0.3' already exists in project 'MovieLensMongo'”
     ExceptionPath.1 = Root.InnerException.InnerException.InnerException.InnerException
     ExceptionPath.2 = Root.InnerException.InnerExceptions.#0.InnerException.InnerException
     ExceptionPath.3 = Root.InnerException.InnerException.InnerExceptions.#0.InnerException
     ExceptionPath.4 = Root.InnerException.InnerExceptions.#0.InnerExceptions.#0.InnerException
     ClassName = NuGet.PackageManagement.PackageAlreadyInstalledException
     HResult = COR_E_EXCEPTION=80131500
     --- Outer ---

当我创建一个新项目时,我没有收到任何这些错误。我可以毫无问题地安装或升级新软件包。

有人有类似的问题吗?

【问题讨论】:

    标签: macos nuget rider


    【解决方案1】:

    在 Rider 版本 RS-144.5342 (Windows) 上,现在 NuGet 窗口的“选项”选项卡上有一个“恢复”按钮。

    【讨论】:

      【解决方案2】:

      好的,我找到了问题。

      目前 Rider 不支持恢复 NuGet 包 (https://www.jetbrains.com/rider/documentation/rider_survival_guide.html#using-nuget):

      Rider 尚不支持在构建之前恢复包 - 现在使用命令行中的 nuget.exe 恢复。此功能将随着 EAP 的进行而添加。

      【讨论】:

        猜你喜欢
        • 2013-11-28
        • 1970-01-01
        • 2014-05-26
        • 2013-02-12
        • 2019-11-24
        • 1970-01-01
        • 2012-06-09
        • 2014-02-04
        • 1970-01-01
        相关资源
        最近更新 更多