缺少仅适用于Caliburn.Micro Xamarin示例的参考或指令

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

标签: reference xamarin caliburn.micro

我正在尝试编译HubBrowser project - 这是一个Caliburn Micro Xamarin项目的例子(少数项目之一)。

这是一个很好的例子,但Android项目没有编译。我收到以下错误:

Error   8   The type or namespace name 'CaliburnApplication' could not be found (are you missing a using directive or an assembly reference?)   HubBrowser\HubBrowser.Android\Application.cs    14  32  HubBrowser.Android
Error   7   The type or namespace name 'ActivityLifecycleCallbackHandler' could not be found (are you missing a using directive or an assembly reference?)  HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs  12  26  HubBrowser.Android
Error   9   The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs  24  55  HubBrowser.Android
Error   10  The type or namespace name 'ActivityEventArgs' could not be found (are you missing a using directive or an assembly reference?) HubBrowser\HubBrowser.Android\Services\ApplicationNavigationService.cs  29  54  HubBrowser.Android

此错误的原因是什么?我该如何解决?

我确保我的引用指向Caliburn.MicroCaliburn.Micro.Platform(net45版本)。我需要Caliburn.Micro.Portable.Core吗?如果是这样的dll在哪里?通过NuGet安装C.M总是失败 - 这些NuGet包和PCL是绝对的噩梦。

1 个答案:

答案 0 :(得分:1)

您需要使用预发行版3.0测试版软件包。在Core PCL项目中,安装Caliburn.Micro.Core 3.0.0-beta1,并在您的Android项目中安装Caliburn.Micro 3.0.0-beta1(它还将安装Core作为依赖项)。

务必检查"预发布" Nuget对话框中的复选框,否则您将无法看到测试版。