Local folder disappears in Windows 8

I am using Windows.Storage.ApplicationData.Current.LocalFolder

to store SQLite database and other files. It works great, but sometimes the folder disappears.

I can check this with Windows Explorer and go to C:\Users\John\AppData\Local\Packages

I suspect it disappears when I debug the application and maybe close it or some other similar thing, but I'm not sure.

Does anyone know under what circumstances Windows 8 can delete a local folder?

+3


source to share


3 answers


Make sure you don't clear the application state while debugging! This is an option on the project properties page. It looks like this. uninstall and then re-install my package

CANNOT be tested in your circumstances!



enter image description here

+4


source


This happened to me when I delete the obj / bin folders. Visual studio will create a new folder and discard the old one.



It looks like this visual studio has found that it needs to uninstall / install the app you are developing. Deleting an application means deleting the old folder and its contents.

0


source


So I am using the same place to store files important to my application and had the same problem several times - all files sometimes disappeared, but after reading this post something was implemented - yes @McAden is the right visual studio reinstalled your application - for me it happened every time I changed something in the application manifest - it is the way it is - every time you change something in the application manifest. Visual studio reinstalls the app and you lose all your data in ApplicationData.Current.LocalFolder - This was a deal with me, I hope this is helpful for someone.

0


source







All Articles