Data will be removed if I rebuild app to Hololens.

I saved my data by PlayerPrefs of Unity. But when I rebuild app to Hololens, this data was removed. WorldAnchor datas were also removed.

I build app by Visual Studio 2015.
when Build Debug, x86, to Device → datas were removed.
when Build Release, x86, to Device → datas were still removed.

so now, What should I do to fix it?
Thank you!

When you deploy from Visual Studio you are installing a new version/ fresh build of the app, the old version gets removed during this process.

1 Like

thank you!
So can we build app without Visual Studio?
At Unity Build Setting, ‘Build_and_Run_on’, there are only Local Machine, Windows Phone (cannot build), Local Machine and Windows Phone (cannot build). If I select Local Machine, app will run on Hololens Emulator :frowning:

Visual Studio has a setting on whether it should wipe all data. It’s in project properties under “debugging”, and is called something like “Uninstall application package on every deploy” or something like that.

1 Like

Thank you.
On Debug Properties, I unchecked “Uninstall and then re-install my package…” .
with target is Hololens Emulator, this bug was fixed.
But with target is Device (real Hololens), when I deployed to Device, application was removed, then re-installed, and datas were deleted.
I checked Device setting (for developers), but It has no build setting (or data setting) :frowning:

Is there anything new on this issue? I have been looking for a solution for this problem for a long time.