Caliburn.Micro NuGet在便携式类库项目上安装失败

时间:2015-08-22 03:24:07

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

我正在尝试将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项目。

1 个答案:

答案 0 :(得分:1)

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