Why aren't .NET “application settings” stored in the registry?

前端 未结 17 1794
醉话见心
醉话见心 2020-12-13 14:51

Some time back in the nineties, Microsoft introduced the Windows Registry. Applications could store settings in different hives. There were hives for application-wide and us

17条回答
  •  眼角桃花
    2020-12-13 15:15

    • The registry is huge so it can be cumbersome to locate the relevant information (even with searching).
    • It is possible to affect other applications by accident when modifying the registry.
    • If the registry is corrupted all applications may be affected (including the OS).
    • You need special purpose tools to search, modify and even copy the registry.

    I prefer config files.

提交回复
热议问题