c# - 为什么debug可以显示,而Release不能?
问题描述
- 主页.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不能?
解决方案
推荐阅读
- reactjs - 为什么我不能使用方法 setState() 来排列元素
- gcc - 无法在生成文件中链接静态库
- iis - 为什么 IIS 关心查询字符串中是否拼错了“convert”?
- php - 注意未定义的索引:
- thingsboard - 我可以在不使用 ThingsBoard 上的 Web UI 而是从命令行添加设备吗?
- c - Google Kickstart 2020 Round A 分配问题
- c# - Flatpickr 加载为上午时间而不是下午时间
- google-apps-script - 我的 OnFormSubmit 触发器需要在加载项的 OnFormSubmit 触发器触发之前完成
- node.js - 如何使用 express 模拟导入的依赖项?
- c++ - GCC 无法编译 OpenMP 卸载到 GPU