c# - How is User.config created and how it is used -


I started reading about config files and I read about user.config. It went on about, but it can not be seen how it has been made and how it is used. Read also that a different user.config will be created for each user. Even read the questions in stack overflow, but they did not help if someone could tell me the right resources? Thanks in advance :)

Thanks @ Ramesh, @ Michael and @Frazendragon for your answer. Got through the articles you posted, assume that I have a web application and are using 3 user names like "A", "B" and "C". I have an app.config in which I have provided default values. I have read that those values ​​can be altered equally in the UserName.config files saved. This is where I am lost. If the value is saved in the user's user profile, then how does the same user try to open the app again? To see?

How to create a user-config file:

If you open a desktop application with the Scope settings, from the user's local application directory, the .NET Framework will try to automatically load the User.config file for you - (< / Code> ) .

If the file does not exist, it will be created.

I do not have the exact resources to tell you, so the exact time when that file may have been created, if it is not found, or it can only be done when you are on ApplicationSettings instance Say Save

Comments