What is the Windows RT / Windows Store App answer to App.config?

后端 未结 4 982
说谎
说谎 2020-12-31 00:20

What is the best way to go about reading and writing simple configuration data like we used to use App.config and Web.config available thr

4条回答
  •  余生分开走
    2020-12-31 00:51

    Metro apps don't have exact equivalent of app.config/web.config.

    Instead you should use package.appxmanifest to configure windows store specific values.

    For local settings you should use ApplicationData api.

    If you want to configure application after it is deployed you could simply load remote xml or json file at application start up.

提交回复
热议问题