Where are user-mode .NET settings stored?

前端 未结 3 1911
甜味超标
甜味超标 2020-11-29 05:39

I\'m wondering what is the magic behind .settings files in .NET. Imagine you create an assembly called in this example SettingsHolder, you create your settings

3条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 06:29

    The setting files are stored in a different place for each user. To find them, click the start menu, click run, and paste:

    %USERPROFILE%\Local Settings\Application Data\
    

    and press enter. There will be a folder with your "Company Name" (whatever it is set to in your assembly) and then some more subfolders. The settings are stored in user.config.

    Full path:

    %USERPROFILE%\Local Settings\Application Data\\
    __\\user.config.
    

    In Windows Vista and newer, these are stored under:

    %USERPROFILE%\AppData\Local\
    

    More info:

    • http://www.codeproject.com/KB/vb/appsettings2005.aspx
    • http://www.google.com/search?q=.net+user.config

提交回复
热议问题