Different app behaviour when deployed locally and from Store

爱⌒轻易说出口 提交于 2019-12-02 07:01:24

The behavior from the store is correct: the app doesn't have permissions to the file system outside of its installed and app data folders. Win32 and C runtime functions access the files directly and so need direct access permissions.

The StorageFile class works with the file broker and so gets the advantage of the declared capabilities, etc. The broker reads the file on the apps behalf and streams the file contents through the StorageFile.

Apps must use StorageFile to read or write files outside their app data and installed location

We've flagged the behavior difference between testing and production for investigation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!