无法加载类型 Cheesebaron.MvxPlugins.Settings.PluginLoader 的插件程序集
could not load plugin assembly for type Cheesebaron.MvxPlugins.Settings.PluginLoader
我遇到了以下问题 运行 我的 MVVMCross 应用程序在 Windows Phone 8 设备
我的包配置是:
<?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>
{
}
然后我像这样使用设置插件
public class SettingsService
{
private ISettings _settings;
public SettingsService(ISettings settingsService)
{
_settings = settingsService;
}
}
我的windowsPhone应用构造器设置如下
public App()
{
var setup = new Setup(RootFrame);
setup.Initialize();
}
但是每当调用 setup.Initialize() 时。我得到以下异常
Additional information: could not load plugin assembly for type Cheesebaron.MvxPlugins.Settings.PluginLoader
at MvvmCross.Platform.Plugins.MvxFilePluginManager.LoadAssembly(Type toLoad)
at MvvmCross.Platform.Plugins.MvxFilePluginManager.FindPlugin(Type toLoad)
at MvvmCross.Platform.Plugins.MvxPluginManager.ExceptionWrappedLoadPlugin(Type toLoad)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePlatformAdaptionLoaded[T]()
at Cheesebaron.MvxPlugins.Settings.PluginLoader.EnsureLoaded()
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded(IMvxPluginLoader pluginLoader)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded(Type type)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded[TType]()
at MvvmCross.Platform.Plugins.MvxPluginBootstrapAction`1.Load(IMvxPluginManager manager)
at MvvmCross.Platform.Plugins.MvxPluginBootstrapAction`1.RunAction()
at System.Action.Invoke()
at MvvmCross.Platform.IoC.MvxSimpleIoCContainer.InternalSetResolver(Type tInterface, IResolver resolver)
at MvvmCross.Platform.IoC.MvxSimpleIoCContainer.RegisterSingleton[TInterface](TInterface theObject)
at MvvmCross.Platform.Mvx.RegisterSingleton[TInterface](TInterface service)
at MvvmCross.Core.Platform.MvxSetup.InitializePluginFramework()
at MvvmCross.Core.Platform.MvxSetup.InitializeSecondary()
at MvvmCross.Core.Platform.MvxSetup.Initialize()
at IGovern.WinPhone.App..ctor()
请问我做错了什么???
我的目标是 Windows Phone 8.0 Silverlight。原来插件不支持这个平台
我遇到了以下问题 运行 我的 MVVMCross 应用程序在 Windows Phone 8 设备
我的包配置是:
<?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>
{
}
然后我像这样使用设置插件
public class SettingsService
{
private ISettings _settings;
public SettingsService(ISettings settingsService)
{
_settings = settingsService;
}
}
我的windowsPhone应用构造器设置如下
public App()
{
var setup = new Setup(RootFrame);
setup.Initialize();
}
但是每当调用 setup.Initialize() 时。我得到以下异常
Additional information: could not load plugin assembly for type Cheesebaron.MvxPlugins.Settings.PluginLoader
at MvvmCross.Platform.Plugins.MvxFilePluginManager.LoadAssembly(Type toLoad)
at MvvmCross.Platform.Plugins.MvxFilePluginManager.FindPlugin(Type toLoad)
at MvvmCross.Platform.Plugins.MvxPluginManager.ExceptionWrappedLoadPlugin(Type toLoad)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePlatformAdaptionLoaded[T]()
at Cheesebaron.MvxPlugins.Settings.PluginLoader.EnsureLoaded()
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded(IMvxPluginLoader pluginLoader)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded(Type type)
at MvvmCross.Platform.Plugins.MvxPluginManager.EnsurePluginLoaded[TType]()
at MvvmCross.Platform.Plugins.MvxPluginBootstrapAction`1.Load(IMvxPluginManager manager)
at MvvmCross.Platform.Plugins.MvxPluginBootstrapAction`1.RunAction()
at System.Action.Invoke()
at MvvmCross.Platform.IoC.MvxSimpleIoCContainer.InternalSetResolver(Type tInterface, IResolver resolver)
at MvvmCross.Platform.IoC.MvxSimpleIoCContainer.RegisterSingleton[TInterface](TInterface theObject)
at MvvmCross.Platform.Mvx.RegisterSingleton[TInterface](TInterface service)
at MvvmCross.Core.Platform.MvxSetup.InitializePluginFramework()
at MvvmCross.Core.Platform.MvxSetup.InitializeSecondary()
at MvvmCross.Core.Platform.MvxSetup.Initialize()
at IGovern.WinPhone.App..ctor()
请问我做错了什么???
我的目标是 Windows Phone 8.0 Silverlight。原来插件不支持这个平台