Deference B/W Application Setting & Config Files. RRS feed

  • Question

  • Hi Friends,
    We can Discuss with the defference between Application Settings File and Application Config Files in Visual Studio.
    I think both are saved on working directory,both of them used to store settings to retrieve after depployment both of them are in XML format. Then what is the deference between *.setting and *.cofig. I am Confused.

    Sunday, December 30, 2007 6:48 AM


  • Hi, Sibugathulla,

    Season's Greetings!.
    Based on my understanding, you want to know the difference between Application Settings File and Application Config File, don't you?

    To understand the difference, please read this article first.

    In my point of view,
    1) The .settings file is used for design time support,  and you can use the IDE ui to setup the application/user settings in it, and an application.config file will be automatically generated when you build your project. But the .config file is used for runtime, you can modify the config file to change the settings after deployment.

    2) You can create "Alternate Sets of Settings" with different .settings files, but there will be only one config file generated for your application.

    3) The connection strings in .settings file will be used for DataSet design which cannot be done with config file.

    More info

    Hope you have a safe and wonderful holiday!
    Tuesday, January 1, 2008 7:45 AM