gpt4 book ai didi

c# - System.IO.FileNotFoundException : Could not load assembly. ..可能不存在于 Android 配置文件的 Mono 中?

转载 作者:太空狗 更新时间:2023-10-29 21:39:22 25 4
gpt4 key购买 nike

尝试从 Visual Studio 编译我的 Android 应用程序时出现以下错误(我正在使用 Xamarin 插件)。

Error 2 Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'PresentationUI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Perhaps it doesn't exist in the Mono for Android profile?

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

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

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

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

我环顾四周,发现了这个 forum post这看起来像一个类似的问题。我找不到 PresentationUI.dll 程序集。

关于为什么我会收到此错误以及如何修复它有什么建议吗?

更新

我发现问题实际上来自使用 Microsoft.Practices.Prism.dll 中的 DelegateCommand是因为 Xamarin 不支持这个程序集吗?

干杯,

最佳答案

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

您必须重新创建应用程序的移动兼容 UI,以便为 Android 做好准备。

Microsoft 将 Prism 设计为与 WPF 一起使用,所以是的,您不能在 Xamarin.Android 项目中使用它。 (尽管 Prism 最新版本确实适用于 Xamarin Forms)。

引用:.NET Cross Platform UI Frameworks

关于c# - System.IO.FileNotFoundException : Could not load assembly. ..可能不存在于 Android 配置文件的 Mono 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22976760/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com