操作方法:Caliburn.Micro.Autofac 和 Windows Phone
是否有示例、教程或任何内容展示如何在 Windows Phone 中使用 Caliburn.Micro.Autofac?
我仅使用 Caliburn.Micro 创建了一个基本应用程序,并且运行良好。然后我决定使用 Caliburn.Micro.Autofac,因此我从 Caliburn.Micro.Autofac.AutofacBootstrapper
派生了我的 Bootstrapper,并在 Bootstrapper 中调用
方法。现在,当我运行该应用程序时,我得到“未找到类型‘AppBootstrapper’”。例外。base.Configure()
>Configure()
感谢任何帮助。
Is there and example, tutorial or anything that shows how to use Caliburn.Micro.Autofac with Windows Phone?
I created a basic application with Caliburn.Micro only, and that runs fine. Then I decided to use Caliburn.Micro.Autofac, so I derived my Bootstrapper from Caliburn.Micro.Autofac.AutofacBootstrapper
and called base.Configure()
inside the Bootstrapper Configure()
method. Now wen I ran the application I get "The type 'AppBootstrapper' was not found." exception.
Appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是我为 WP7 项目编写的引导程序。它基于
Caliburn.Micro.Autofac.AutofacBootstrapper
但修复了一些错误。编辑 我创建了 Caliburn.Micro.Autofac 的一个分支,并在 GitHub 上修复了该问题。希望拉取请求能够被接受,并且这将成为主存储库的一部分。
现在,您可以从此处访问引导程序和 AutofacPhoneContainer - https://github.com/distantcam/Caliburn.Micro.Autofac/tree/master/src/Caliburn.Micro.Autofac-WP7
This is the bootstrapper I wrote for a WP7 project. It's based on
Caliburn.Micro.Autofac.AutofacBootstrapper
but fixes some bugs.EDIT I have created a fork of Caliburn.Micro.Autofac and fixed the issue on GitHub. Hopefully the pull request will be accepted and this will become part of the main repository.
For now, you can access the bootstrapper, and AutofacPhoneContainer from here - https://github.com/distantcam/Caliburn.Micro.Autofac/tree/master/src/Caliburn.Micro.Autofac-WP7
我已经为 Windows Phone 实现了 Caliburn.Micro.Autofac 的正确版本(在我看来)。您可以从我的博客下载它并测试项目。该博文是俄语的,但您可以在博文顶部找到 ZIP 文件的链接。代码太大,无法在此处发布,因此请从博客中获取。我已将其发送给 David Buksbaum(Caliburn.Micro.Autofac 的作者)。希望他尽快将其合并到他的代码库中。
更新
修复内容:
I have implemented a proper version (in my opinion) of Caliburn.Micro.Autofac for Windows Phone. You can download it and test project from my blog. The blog post is in Russian but you'll find the link to ZIP file in the top of the post. The code is too big to post here, so please take from the blog. I've send this to David Buksbaum (the author of Caliburn.Micro.Autofac). Hope he will incorporate it into his code base soon.
UPDATE
What is fixed: