本文介绍了System.IO.FileNotFoundException:未能加载程序集...也许不会在单声道存在Android的个人资料?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Visual Studio(我用Xamarin插上)编译我的Android应用程序时,收到以下错误。

I am getting the following error when trying to compile my Android App from Visual Studio (I am using Xamarin plug in).

2的错误时出现异常装载组件:System.IO.FileNotFoundException:未能加载程序集PresentationUI,版本= 4.0.0.0,文化=中性公钥= 31bf3856ad364e35'。 ?在
Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve'PresentationUI.dll:也许它不会在单声道Android的配置文件是否存在。

文件名(AssemblyNameReference

File name: 'PresentationUI.dll' at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference

参考,ReaderParameters参数)在
Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1

reference, ReaderParameters parameters) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1

组件,装配AssemblyDefinition,布尔TOPLEVEL)在
Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1

assemblies, AssemblyDefinition assembly, Boolean topLevel) at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1

组件,装配AssemblyDefinition布尔的顶层)在
Xamarin.Android.Tasks.ResolveAssemblies.Execute()

assemblies, AssemblyDefinition assembly, Boolean topLevel) at Xamarin.Android.Tasks.ResolveAssemblies.Execute()

我身边有一看,发现这它看起来像一个类似的问题。我找不到PresentationUI.dll装配寿。

I had a look around and found this forum post which looks like a similar problem. I couldn't find the PresentationUI.dll assembly tho.

这是为什么我收到此错误,以及如何解决它的任何建议?

Any suggestion on why am I getting this error and how to fix it?

更新

我发现这个问题其实来自于使用DelegateCommand微软.Practices.Prism.dll
是不是因为这个组件不支持Xamarin?

I found that the problem actually comes from using DelegateCommand from Microsoft.Practices.Prism.dllIs it because this assembly is not supported by Xamarin?

干杯,

推荐答案

PresentationUI是WPF的一部分(UI框架在Windows上),这是不是可以在移动平台,如Xamarin.Android。

PresentationUI is part of WPF (UI framework on Windows), which is not available on mobile platforms, such as Xamarin.Android.

您需要重新创建应用程序的移动设备兼容的用户界面,以便Android的准备

You have to recreate a mobile compatible UI of your application so as to be Android ready.

微软棱镜设计与WPF工作,所以是的,你不能在Xamarin.Android项目中使用它。

Microsoft designs Prism to work with WPF, so yes you cannot use it in a Xamarin.Android project.

这篇关于System.IO.FileNotFoundException:未能加载程序集...也许不会在单声道存在Android的个人资料?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 22:30