仅 Caliburn.Micro Xamarin 示例缺少引用或指令
Missing Reference or Directive for Only Caliburn.Micro Xamarin Example
我正在尝试编译 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.Micro
和 Caliburn.Micro.Platform
(net45 版本)。我需要 Caliburn.Micro.Portable.Core
吗?如果是这样,这个dll在哪里?通过 NuGet 安装 C.M 总是失败 - 这些 NuGet 包和 PCL 绝对是噩梦。
您需要使用预发布 3.0 测试包。在 Core PCL 项目中,安装 Caliburn.Micro.Core 3.0.0-beta1,在您的 Android 项目中,安装 Caliburn.Micro 3.0.0-beta1(这也会安装 Core 作为一个依赖项)。
请务必选中 Nuget 对话框中的 "pre-release" 复选框,否则您将看不到测试版。
我正在尝试编译 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.Micro
和 Caliburn.Micro.Platform
(net45 版本)。我需要 Caliburn.Micro.Portable.Core
吗?如果是这样,这个dll在哪里?通过 NuGet 安装 C.M 总是失败 - 这些 NuGet 包和 PCL 绝对是噩梦。
您需要使用预发布 3.0 测试包。在 Core PCL 项目中,安装 Caliburn.Micro.Core 3.0.0-beta1,在您的 Android 项目中,安装 Caliburn.Micro 3.0.0-beta1(这也会安装 Core 作为一个依赖项)。
请务必选中 Nuget 对话框中的 "pre-release" 复选框,否则您将看不到测试版。