I've got an UWP app which I deploy to Windows 10 IoT running on a Raspberry Pi. This used to run fine, but these last few days (probably after updating something), subsequent deployments will clear out all of the files in the LocalState folder. Actually, all files seem to be cleared.
I checked the project settings (even though nothing has changed there, but ok) and verified the following:
- The checkbox for "Uninstall and then re-install my package." is unchecked.
- The checkbox for "Keep all files on device - even those that are no longer a part of your layout" is checked.
These files are being written by the application itself, so upon first deployment there's nothing there. But between deployments I want them to persist (contains configuration style data). With "deployment" I mean just pressing F5 in Visual Studio and deploying to a remote machine (the Pi).
It's probably something stupid, but I can't figure out why it's behaving the way it does.