UWP app: FileOpenPicker PickSingleFileAsync() can't await

前端 未结 1 1018
青春惊慌失措
青春惊慌失措 2020-12-20 19:39

I\'m trying to let the user browse for a file with the FileOpenPicker class, but when I use the PickSingleFileAsync function with await, I get following error:

相关标签:
1条回答
  • 2020-12-20 20:13

    do you have:

    using System;

    at the top of the class file? I just tried adding your sample to a project and duplicated your error when I removed this reference...

    0 讨论(0)
提交回复
热议问题