[UWP] FileLoadException - 在.net Native中的ARM设备上找不到System.Threading v4.0.10.0 [英] [UWP]FileLoadException - System.Threading v4.0.10.0 not found on ARM device in .net Native

查看:69
本文介绍了[UWP] FileLoadException - 在.net Native中的ARM设备上找不到System.Threading v4.0.10.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UWP应用程序,我打包成Store应用程序,它给了appxupload,然后我上传到hockeyapp。从那里我尝试在我的手机上运行它,但我在启动时遇到这个例外:


FileLoadException - 无法加载文件或程序集'System.Threading,Version = 4.0.10.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。定位程序集的
清单定义与程序集引用不匹配。 (来自HRESULT的异常:0x80131040)


如果我在桌面上运行该应用程序,它可以正常工作。


应用程序目标周年纪念版(14393) - 最小版本和目标版本


project.json引用"Microsoft.NETCore.UniversalWindowsPlatform": " 5.1.0" (我也尝试过5.2.2然后应用程序无法完全启动,它会在启动画面上挂起一段时间然后崩溃)


电话是Lumia 950,v10.0.14965.1001


奇怪的是,如果我从VS2015直接部署到手机上(带有.net native的发布模式),它的工作正常。它只会在我创建appxbundle并在手机上运行时崩溃。


任何想法?我尚未将应用程序上传到Store,但我担心结果会相同。

解决方案


任何想法?我尚未将应用程序上传至Store,但我担心结果会相同。




您好Tomas,


请注意,不应将appxupload文件侧载到Windows Phone设备上,以供Store使用。您应该使用appx文件进行侧载(或者如果您想使其成为appxbundle)。


有关详细信息,请参阅 包装UWP应用程序


至于你的最后一个问题,我建议您在定价和可用性
分布和可见性部分中选择以下选项上传您的提交:



这样,您可以下载您的应用程序并在两台设备上进行测试,看它是否能正常运行。确认后没有问题,您可以更新您的提交,并将可见性更改为"在商店中提供此应用"所以你
不会担心用户体验。


祝你好运,


Mattew Wu


Hi, I have a UWP app which I package as a Store app, which gives me appxupload which I then upload to hockeyapp. From there I try to run it on my phone but I get this exception on startup:

FileLoadException - Could not load file or assembly 'System.Threading, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

If I run the app on desktop it works fine.

The app targets anniversary edition (14393) - both min and target versions

The project.json references "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0" (I also tried 5.2.2 but then the app just fails to start completely, it hangs a while on splashscreen and then crashes)

Phone is a Lumia 950, v10.0.14965.1001

The weird thing is, if I deploy from VS2015 directly onto the phone (release mode with .net native) it works just fine. It only crashes when I create an appxbundle and run that on the phone.

Any ideas? I haven't uploaded the app to Store yet, but I am afraid the result will be the same.

解决方案

Any ideas? I haven't uploaded the app to Store yet, but I am afraid the result will be the same.


Hi Tomas,

Please note that appxupload file should not be sideloaded onto your Windows Phone device, which is for Store use. You're supposed to use appx file for sideloading (or if you want to make it appxbundle).

For more details, please refer to Packaging UWP apps.

As for your last question, I would like to suggest you to upload your submission selecting the option below in the Distribution and visibility section of Pricing and availability:

In this way, you can download your app and test it on both devices to see if it can work well. After confirming it without problem, you can update your submission, and change the visibility to "Make this app available in the Store" so that you won't worry about the user experience.

Best regards,

Mattew Wu


这篇关于[UWP] FileLoadException - 在.net Native中的ARM设备上找不到System.Threading v4.0.10.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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