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

查看:347
本文介绍了为什么我的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应用程序的Release配置的Properties的Build选项卡上的使用.NET Native工具链编译并使用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天全站免登陆