为什么我的 Xamarin UWP 图像没有显示在设备上? [英] Why are my Xamarin UWP Images not showing up on device?

查看:28
本文介绍了为什么我的 Xamarin UWP 图像没有显示在设备上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ffimageloading 开发 Xamarin UWP 应用.这些图像在我通过 Visual Studio 运行的 Windows Phone 模拟器上显示得很好,但是当我通过设备门户将其部署到设备时,所有图像都丢失了.

I am developing a Xamarin UWP app using ffimageloading. The images show up just fine on the Windows Phone emulator that I am running through Visual Studio, but when I deploy it to a device through the device portal all of the images are missing.

 <ffimageloading:CachedImage Grid.Column="0" Grid.Row="1" 
    Source="{helpers:ImageResource MyProject.Assets.Images.music-doublenote.png}" />

推荐答案

问题在于构建配置.通过在主 UWP 应用程序的发布配置的属性的构建选项卡上关闭使用 .NET 本机工具链编译"并使用 WinAppDeployCmd.exe 部署应用程序

The issue was the build configuration. By turning off "Compile with .NET Native tool chain" on the Build tab of Properties for the Release configuration of the main UWP app and deploying the app with WinAppDeployCmd.exe

这篇关于为什么我的 Xamarin UWP 图像没有显示在设备上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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