Search code examples
winforms.net-3.5

Write to app.config in .Net 3.5?


I need to be able to write to the app.config file in my .Net 3.5 Windows app to store some system settings?

I can read from the file but I can't write to it??

Everything I have found is for 2.0 and doesn't look to be the same for 3.5.


Solution

  • .NET 2.0 is part of .NET 3.5

    So just use what you found for .NET 2.0, or have a look at: Read/Write App.config with .NET 2.0

    Also see SO answer: Update app.config system.net setting at runtime