MvvmCross 4和WPF的SQLite插件 [英] MvvmCross 4 and WPF SQLite plugin

查看:320
本文介绍了MvvmCross 4和WPF的SQLite插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MvvmCross 4.0.0社区SQLite的插件已经被替换为新的SQLite-PCL插件(如果我没有记错的话)。

In MvvmCross 4.0.0 the Community SQLite plugin has been replaced with new SQLite-PCL plugin (if I am not mistaken).

这在我的Android的伟大工程应用程序,但是当我试图在WPF应用程序中使用它,我遇到了一些问题。

It works great in my Android application, but when I tried to use it in WPF application I faced problems.


  1. 当包从的NuGet没有默认引导文件安装,因此, MVX 运行时无法解析类,如 MvxSqliteConnectionFactory

  2. 当我添加引导代码手动我得到这样的错误:

  1. When package is installed from nuget there's no default Bootstrap file, therefore Mvx runtime fails to resolve classes like MvxSqliteConnectionFactory.
  2. When I add bootstrap code manually I get error like:

型Cirrious.CrossCore.Exceptions.MvxException的第一个机会异常发生在WindowsBase.dll
版本未知:时间26/10/2015 08:53:16.232 PM:错误:1.30异常:无法加载插件组装型MvvmCross.Plugins.Sqlite.PluginLoader

A first chance exception of type Cirrious.CrossCore.Exceptions.MvxException occurred in WindowsBase.dll Version Unknown : Time 26/10/2015 08:53:16.232 PM: Error : 1.30 Exception: could not load plugin assembly for type MvvmCross.Plugins.Sqlite.PluginLoader

我想,运行时是不能,因为它通过附加.Wpf后缀的插件的名称确实查找到可能加载程序集,所以看起来组装 MvvmCross。 Plugins.Sqlite.Wpf 或类似的东西。但有没有这样的库,在这里只有 WindowsUWP 版本。

I figured that runtime is not able to load assembly probably because it does lookup by appending .Wpf suffix to the name of the plugin, so it looks for assembly MvvmCross.Plugins.Sqlite.Wpf or something like that. But there's no such library, in repository there's only WindowsUWP version.

我能做些什么来解决这个问题,如何使用这个插件在WPF应用程序?

What can I do to fix the problem and how do I use this plugin in WPF app?

推荐答案

WPF插件添加到MvvmCross回购,请查看最新的预发布版本。

WPF plugin added to MvvmCross repos, please check out the latest prerelease version.

这篇关于MvvmCross 4和WPF的SQLite插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆