Isolated storage location for windows phone 7?

梦想的初衷 提交于 2019-12-04 07:56:30

The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory:

# Copy data from IS to directory
ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"

# Copy data from IS to directory
ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"

After some more googling, i found this post. It seems that "the emulator does not save its state when you close it." Also:

Saving State. To test compatibility with other .Net framework environments I just re-implemented some standard Isolated Storage example code for application settings in my Silverlight application. It just works. But note, the preview emulator doesn’t hold state beyond debug sessions – so you can only test state storage in your application session at the moment.

from this post. (http://wotudo.net/blogs/wotudo/archive/2010/03/15/mix-building-a-windows-phone-7-series-silverlight-application.aspx)

The intent of isolated storage is for it to be only accessible by the application that wrote the data in that store. Isolated storage can not be shared across applications, hence being able to find the files you store in isolated storage through an explorer like experience isn't allowed.

If you need to access the files to observe the data in it, or to share it across applications, consider storing the file in a cloud service. Or if you need to look at the contents of that file for debug purposes, maybe add an option to write that file on your server.

rastacoding

I use this program to help me capture the data from the windows 7 phone emulator.

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