Xamarin Forms UWP平台是否因64位版本而被破坏? [英] Is Xamarin Forms UWP Platform Broken for 64bit Builds?

查看:84
本文介绍了Xamarin Forms UWP平台是否因64位版本而被破坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了数小时试图让我的Forms应用程序在UWP上运行.我终于意识到我将Visual Studio中的解决方案平台"下拉列表设置为64位.当我将其设置为AnyCPU或32bit时,它可以正常工作.

Ive spent hours trying to get my Forms app working on UWP. I finally realised I had the Solution Platform drop-down in Visual Studio set to 64 bit. When I set it to AnyCPU or 32bit it works fine.

针对64位版本运行时,我看到的错误是:

The error I see is when running against a 64bit build is:

Xamarin.Forms.Platform.UAP.dll中发生了类型为'System.NotImplementedException'的异常,但未在用户代码中处理 附加信息:该方法或操作未实现.

An exception of type 'System.NotImplementedException' occurred in Xamarin.Forms.Platform.UAP.dll but was not handled in user code Additional information: The method or operation is not implemented.

我在可移植项目的App.cs类的构造函数中收到此错误. Stacktrace是:

I get this error in the constructor of the App.cs class in the portable project. The Stacktrace is:

在Xamarin.Forms.Platform.UWP.WindowsResourcesProvider.GetStyle(Object nativeKey) 在Xamarin.Forms.Platform.UWP.WindowsResourcesProvider.GetSystemResources() 在Xamarin.Forms.Application..ctor() 在TestForms.App..ctor() 在TestForms.UWP.MainPage..ctor() 在TestForms.UWP.TestForms_UWP_XamlTypeInfo.XamlTypeInfoProvider.Activate_4_MainPage() 在TestForms.UWP.TestForms_UWP_XamlTypeInfo.XamlUserType.ActivateInstance()

at Windows.UI.Xaml.Setter.get_Value() at Xamarin.Forms.Platform.UWP.WindowsResourcesProvider.GetStyle(Object nativeKey) at Xamarin.Forms.Platform.UWP.WindowsResourcesProvider.GetSystemResources() at Xamarin.Forms.Application..ctor() at TestForms.App..ctor() at TestForms.UWP.MainPage..ctor() at TestForms.UWP.TestForms_UWP_XamlTypeInfo.XamlTypeInfoProvider.Activate_4_MainPage() at TestForms.UWP.TestForms_UWP_XamlTypeInfo.XamlUserType.ActivateInstance()

当我 再次尝试使用全新的Xamarin Forms项目 时,在尝试以64位模式运行它时,也会遇到相同的问题.

When I tried again with a brand new Xamarin Forms project I get the same issue when trying to run it in 64 bit mode.

我不记得阅读过有关64位不支持的Xamarin Forms UWP的任何内容.

I cant remember reading anything about Xamarin Forms UWP not being supported on 64 bit.

Xamarin的人可以帮我吗?

Can someone from Xamarin help me out ?

谢谢

推荐答案

看起来您遇到了这个错误:

Looks like you are hitting this bug:

https://bugzilla.xamarin.com/show_bug.cgi?id=33135

如果您希望在错误更新时收到通知,则可以将自己添加到该错误的抄送列表中.请注意,如果尚未在该系统上创建帐户,则需要这样做.

If you would like to receive a notification when the bug is updated, you can add yourself to the CC list for the bug. Please note that you will need to create an account on that system if you have not already done so.

这篇关于Xamarin Forms UWP平台是否因64位版本而被破坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆