I am trying to get one line of code working in a Windows 10 UWP.
private static async Task MakeFile()
{
var file = await
Windows.Storage.ApplicationData.Current.TemporaryFolder.CreateFileAsync("bob", CreationCollisionOption.GenerateUniqueName);
}
For some reason When I try to run this the whole app freezes and never comes back
I didn't want to update beyond the stable version. I tried without debugging and on the main thread with no luck. So I created a new project and tried it there and it worked fine. So I just redid the app and copied my code over and now it works. Something must have gotten corrupt in that project
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.