首页 > 解决方案 > 为什么debug可以显示,而Release不能?

问题描述

  1. 主页.xaml
    <Image x:Name="img1" />

2.MainPage.xaml.cs

try 
{ 
    img1.Source = ImageSource.FromResource("IF_Rookie_Project.images.IF_ver2.png"); 
} 
catch(Exception ex) 
{ 
    DisplayAlert("Alert", ex.Message.ToString(), "OK"); 
}

如题。为什么debug可以显示,而Release不能?

标签: c#xamarin.formsuwp

解决方案


推荐阅读