When you start debugging by using F5, Visual Studio builds and deploys the app in a respective packages in the local storage, and then starts the app. If you stopĀ the debugging, you can run the app from installed location or if you execute it from Visual Studio again, Visual Studio just update the packages with updated components ( if there is any) and run it again.Ā While this is a common and regular process, there are some cases where, before you start debugging,Ā you may want to uninstall the app first, clear you local storage data.
To uninstall and clear the app local storage, we generally do it manually by uninstalling the app.Ā However, this can be automatically taken care by Visual Studio by applying few settings.
- Open the Project Properties Windows
- Navigate to āDebugā Tab
- and then select āUninstall and then re-install my package. All Information about the application state is deletedā
- Save the settings.
When this option is selected, Visual Studio first uninstall the app packages and thenĀ reinstall it before start.Ā This procedure is useful when you need to debug an app that was alreadyĀ installed and that uses local states , storage information and you wanted to clear them before start the debugging.
Hope this was useful.
Thanks,
Aj