Where to store configuration for a simple .NET application?

后端 未结 7 2063
死守一世寂寞
死守一世寂寞 2020-12-16 00:50

I\'m programming a fairly simple application which I want to cut to just one simple EXE file + some data storage (XML for example).

My question is regarding configur

7条回答
  •  鱼传尺愫
    2020-12-16 01:46

    I think you want to take a look at Application Settings. This is an API which allows you to save user or application settings using a strongly typed API. Under the hood the settings are stored via XML serialization.

    This API works with virtually every type of .Net application including low permission Click Once versions. It does the work of finding the place on disk appropriate for storing the data and completely hides it from you. It also has a nice GUI integration into Visual Studio.

提交回复
热议问题