Accessing storage of simulator/device while debugging

前端 未结 1 941
感动是毒
感动是毒 2020-12-10 20:49

I created an UWP project, where I store a file in the cache directory:

string writeFilePath = Path.Combine(ApplicationData.Current.LocalCacheFolder.Path, \"t         


        
相关标签:
1条回答
  • On Local Machine, the data files are stored in the folder

    %USERPROFILE%\AppData\Local\Packages\{Package family name}

    which usually is C:\Users\{UserName}\AppData\Local\Packages\{Package family name}, where {UserName} corresponds to the Windows user name and {Package family name} corresponds to the Windows Store application package identifier which you can find as Package family name in Packaging tab of your app's manifest file.

    And the LocalCache folder inside the package folder is the cache directory you've used to save image. You can view the saved image in it.

    For Simulator, it's as same as Local Machine.

    For Mobile Emulator and Device, we can use some tools like IsoStoreSpy or Windows Phone Power Tools to access Isolated Storage. Use these tools we can access LocalFolder, TemporaryFolder and RoamingFolder. However LocalCacheFolder is not supported.

    Isolated Storage Explorer tool is used for Mobile Emulator and Device not for Local Machine and Simulator and by default it lists, copies, and replaces files and directories in your app’s local folder which is the LocalState folder in Local Machine. So you only get an empty ApplicationInsights folder when you use it.

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