1

I created new folders under assets, and used the following code to get the new folder but failed by : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

var folder = await Package.Current.InstalledLocation.GetFolderAsync(@"Assets\AnimalImages");

not sure that's why

1 Answer 1

4

You should use await StorageFolder.GetFolderFromPathAsync(...)

var folder = await StorageFolder.GetFolderFromPathAsync(Windows.ApplicationModel.Package.Current.InstalledLocation.Path + @"\Assets\AnimalImages");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.