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?
source to share
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.
source to share
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.
source to share