2
我有一个问题,要加载NuGET加载MVVMCross库(如N视频建议)。这是我的插件加载器:无法加载程序集MVVMCross
private void InitialisePlugins()
{
PluginLoader.Instance.EnsureLoaded();
Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded();
Cirrious.MvvmCross.Plugins.JsonLocalisation.PluginLoader.Instance.EnsureLoaded();
Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded();
Cirrious.MvvmCross.Plugins.Messenger.PluginLoader.Instance.EnsureLoaded();
}
异常(似乎没有加载该文件,但它在目录输出复制):
> 06-25 16:57:27.538 I/mvx ( 717): 4.21 Setup: PluginManagerFramework start
> mvx:Diagnostic: 4.21 Setup: PluginManagerFramework start
> [0:] mvx:Diagnostic: 4.21 Setup: PluginManagerFramework start
> 06-25 16:57:27.611 I/mono-stdout( 717): mvx:Diagnostic: 4.21 Setup: PluginManagerFramework start
> [0:]
> 06-25 16:57:27.708 I/mvx ( 717): 4.38 Setup: App start
> mvx:Diagnostic: 4.38 Setup: App start
> [0:] mvx:Diagnostic: 4.38 Setup: App start
> 06-25 16:57:27.788 I/mono-stdout( 717): mvx:Diagnostic: 4.38 Setup: App start
> [0:]
> 06-25 16:57:27.949 I/mvx ( 717): 4.62 Loading plugin assembly: Cirrious.MvvmCross.Plugins.File.Droid.dll
> mvx:Diagnostic: 4.62 Loading plugin assembly: Cirrious.MvvmCross.Plugins.File.Droid.dll
> 06-25 16:57:28.028 I/mono-stdout( 717): mvx:Diagnostic: 4.62 Loading plugin assembly: Cirrious.MvvmCross.Plugins.File.Droid.dll
> [0:] mvx:Diagnostic: 4.62 Loading plugin assembly: Cirrious.MvvmCross.Plugins.File.Droid.dll
> Unhandled Exception:
>
> Cirrious.CrossCore.Exceptions.MvxException: Loading...
> 06-25 16:57:47.188 E/mono ( 717):
> 06-25 16:57:47.188 E/mono ( 717): Unhandled Exception:
> 06-25 16:57:47.188 E/mono ( 717): Cirrious.CrossCore.Exceptions.MvxException: Could not load file or
> assembly 'Cirrious.MvvmCross.Plugins.File.Droid.dll' or one of its
> dependencies. The system cannot find the file specified. --->
> System.IO.FileNotFoundException: Could not load file or assembly
> 'Cirrious.MvvmCross.Plugins.File.Droid.dll' or one of its
> dependencies. The system cannot find the file specified.
> 06-25 16:57:47.188 E/mono ( 717): File name: 'Cirrious.MvvmCross.Plugins.File.Droid.dll'
> 06-25 16:57:47.188 E/mono ( 717): at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence
> assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0
> 06-25 16:57:47.188 E/mono ( 717): at System.AppDomain.Load (System.String assemblyString) [0x00000] in <filename unknown>:0
> 06-25 16:57:47.188 E/mono ( 717): at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
> 06-25 16:57:47.188 E/mono ( 717): at System.Reflection.Assembly.Load (System.String assemblyString)
> [0x00000] in <filename unknown>:0
> 06-25 16:57:47.188 E/mono ( 717): at (wrapper remoting-invoke-with-check) Syst06-25 16:57:47.188 E/mono ( 717):
> at Cirrious.CrossCore.Plugins.MvxFilePluginManager.LoadAssembly
> (System.Type toLoad) [0x0001e] in
> c:\Projects\Misc\MVVMCROSS\CrossCore\Cirr
> The program 'Mono' has exited with code 0 (0x0).
” ...... Android应用项目 - 有你吗? “是的,我有!... –
我试图删除所有对我的项目的引用,并重新加载nuget(如N8 +所建议的,以及我以前做过的事情),但这并不能解决我的问题。 ? –