无法为类型Cheesebaron.MvxPlugins.Settings.PluginLoader加载插件程序集

时间:2016-11-14 08:20:43

标签: windows-phone-8 windows-phone-8.1 windows-phone mvvmcross

请问我在Windows Phone 8设备上运行MVVMCross应用程序时遇到以下问题

我的包裹配置是:

(: function call :)
 local:document-rename ("/opt/backup/x.xml","y.xml");

我的插件引导程序如下

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Bulboss.MvvmCross.Plugins.UserInteraction" version="1.3.1" targetFramework="wp8" />
  <package id="Cheesebaron.MvxPlugins.Settings" version="2.1.0" targetFramework="wp8" />
  <package id="Microsoft.Bcl" version="1.1.9" targetFramework="wp8" />
  <package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="wp8" />
  <package id="Microsoft.Net.Http" version="2.2.22" targetFramework="wp8" />
  <package id="MvvmCross" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Binding" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Core" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Platform" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.File" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.Json" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.Location" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.Messenger" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.Network" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.Plugin.Visibility" version="4.3.0" targetFramework="wp8" />
  <package id="MvvmCross.StarterPack" version="4.3.0" targetFramework="wp8" />
  <package id="Newtonsoft.Json" version="9.0.1" targetFramework="wp8" />
  <package id="WPtoolkit" version="4.2013.08.16" targetFramework="wp8" />
</packages>

我像这样使用设置插件

 public class SettingsPluginBootstrap : MvxPluginBootstrapAction<Cheesebaron.MvxPlugins.Settings.PluginLoader>
    {

    }

我的Windows Phone应用程序构造函数设置如下

public class SettingsService
    {

        private ISettings _settings;

        public SettingsService(ISettings settingsService)
        {
            _settings = settingsService;
        }
}

但是每当调用setup.Initialize()时。我得到了跟随异常

 public App()
        {
            var setup = new Setup(RootFrame);
            setup.Initialize();
        }

请问我做错了什么?

1 个答案:

答案 0 :(得分:0)

我的目标是Windows Phone 8.0 Silverlight。原来这个插件不支持这个平台