【问题标题】:Caliburn.Micro NuGet Install Fails on Portable Class Library Project可移植类库项目上的 Caliburn.Micro NuGet 安装失败
【发布时间】:2015-08-22 11:52:20
【问题描述】:

我正在尝试将 Caliburn.Micro-Contrib NuGet 包安装到 VS 2013 Professional 中的一个空 PCL 项目中。

尝试安装软件包时,我从 NuGet 收到以下错误:

Attempting to resolve dependency 'Caliburn.Micro (≥ 1.3.1)'.
Installing 'Caliburn.Micro 1.3.1'.
Successfully installed 'Caliburn.Micro 1.3.1'.
Installing 'Caliburn.Micro-Contrib 1.0.2'.
Successfully installed 'Caliburn.Micro-Contrib 1.0.2'.
Adding 'Caliburn.Micro 1.3.1' to ClassLibrary2.
Uninstalling 'Caliburn.Micro 1.3.1'.
Successfully uninstalled 'Caliburn.Micro 1.3.1'.
Install failed. Rolling back...
Could not install package 'Caliburn.Micro 1.3.1'. You are trying to install this package into a project that targets 'portable-net40+win+wpa81+MonoAndroid10+xamarinios10+MonoTouch10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

问题的原因是什么,我该如何解决?

请注意,标准类项目的包安装成功,但 PCL 项目安装失败。 PCL 旨在成为 Xamarin Android 和 iOS 项目。

【问题讨论】:

    标签: xamarin nuget caliburn.micro portable-class-library


    【解决方案1】:

    Caliburn.Micro Contrib 似乎没有 PCL 兼容包。它还取决于 Caliburn Micro 的完整(不是 PCL)版本。另请注意,Xamarin 支持似乎仅在 Caliburn Micro 的预发布测试版中可用。

    【讨论】:

    • 感谢您的回答。您知道我应该在 Caliburn.Micro Xamarin 项目(具有 Android 和 iOS 项目的 PCL)中使用的 CM NuGet 包的名称和版本吗?
    • 编辑以上评论。看起来你在我的另一个问题中建议了一个包 - 也许这就是我正在寻找的包?
    猜你喜欢
    • 1970-01-01
    • 2023-04-06
    • 2013-12-10
    • 2018-05-30
    • 1970-01-01
    • 2013-12-29
    • 2013-10-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多