Dear all,
I am building an application on windows phone 7. My application needs some configurations such as Web-service Urls, database name, … These configurations may be changed whenever needed during deployment time ( but I don’t want to re-build the application). In WPF application, I often save these configurations at App.config file, but in WP7 application I can’t.
If you met this problem before as well as you have any solution for it, please tell me.
Thanks so much.
Binh Nguyen.
I’m not clear from your question but:
If you want settings that you can change at run time (once deployed) then store this information in
IsolatedStorage. You can use an IsolatedStorageFile or IsolatedStorageSettings depending on what is most appropriate to your data.I’ve done this lots by having default settings in code which I write to an IsolatedStorageFile on first run of the app. These can then be read and updated as necessary.
If you just want change the values at build time, include the settings in a/the resources (.resx) file.