【问题标题】:UWP Xamarin.Forms 'System.IO.FileNotFoundException' occurred in System.Private.Reflection.Core.dllUWP Xamarin.Forms 'System.IO.FileNotFoundException' 发生在 System.Private.Reflection.Core.dll
【发布时间】:2018-06-28 14:59:50
【问题描述】:

我的 UWP 应用在 Xamarin.Forms.Forms.Init(e, assembly) 上崩溃 **抛出异常:

'System.IO.FileNotFoundException' 在 System.Private.Reflection.Core.dllFileNotFound_AssemblyNotFound, clr压缩**

如果我从异常设置中取消选中 'System.IO.FileNotFoundException',应用程序不会崩溃,但这不是最佳解决方案,因为如果我取消选中此异常,我会遇到 Storage API 的另一个问题(我不能使用 StorageFolder 来获取文件,因为执行没有返回并且没有抛出异常)。 我不知道这个问题是否与第一个例外有关,但是 谁能解决这个问题?

【问题讨论】:

  • 造成这个问题的原因有很多。你能分享更多代码吗?
  • 抱歉耽搁了!无论如何,当我使用 Storage API 时,问题是 async/await 方法,对于“System.IO.FileNotFoundException”,我必须更新 Visual Studio。

标签: c# visual-studio xamarin xamarin.forms uwp


【解决方案1】:

当我使用Storage API 时,问题是async/await 方法,而对于System.IO.FileNotFoundException,我必须更新Visual Studio。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-09-01
    • 2020-03-01
    • 1970-01-01
    • 2016-11-22
    • 1970-01-01
    • 1970-01-01
    • 2019-06-25
    相关资源
    最近更新 更多