Bear23

what is the difference between the 2 and which should be used



Re: Visual C# General settings.settings vs application configuration file

Gabriel Lozano-Moran

Well Application Settings has the following advantages:

  • Strongly-typed
  • Limited type safety
  • Two-way (not only read settings but also persist settings)
  • Can be used to bind to properties of controls in design-time
  • Replaces Dynamic Properties from previous Visual Studio releases
  • ...

The biggest disadvantage is that it cannot be used for all project types like Class Library projects.






Re: Visual C# General settings.settings vs application configuration file

Bear23

actually I noticed that when I typed in data in the settings.settings that it created an application.config file. I am taking it it is the same thing. Just has a nice GUI interface It also has the same .config.exe extension

I need to create one and have it saved in another location. Example have the file saved to c:\windows

then how would I call that file in my application.





Re: Visual C# General settings.settings vs application configuration file

Bear23

also i am able to save to an app.config file. So I am not sure where the read-only is coming from.