jascam / CodePlexFoo

0 stars 0 forks source link

Application Configuration Editor for .NET (exe.config editor sample request) #618

Open jascam opened 6 years ago

jascam commented 6 years ago

We've been using Visual Studio for a long time and have found the app.config files are very unfriendly to update at runtime once the application has been compiled. One of the alternative ways is to use the UI application to change configuration settings. We would like to be shown how to manipulate a .config file or any XML document to update its node/attribute values.We would like to see on CodePlex a tool sample that can read any App.config or exe.config file and display it to the user in a GridView, when the user updates the Grid the app.config file should be updated with the new changes and saved.CodePlex developers could easily generate a Generic exe.config parser and editor. There are currently no examples of this functionality on CodePlex, thousands of developers would find this functionality useful in their projects because Visual Studio uses the app.config as standard to store all application and user settings yet it provides no tools for the user once the application has been compiled for when they need to edit it. It's like every developer has to re-invent the wheel for no reason.Currently the end users have to manually edit the exe.config settings by opening it up in notepad, that is not user-friendly for end-users or developers.I have attached an example of an OpenSource Project that was done in Visual Studio 2003 nearly 10 years ago.http://www.codeproject.com/Articles/6160/Application-Configuration-Editor-using-the-PropertIt would be very useful to see an example on how to do it on .NET 3.5 or .NET 4, there is currently no such example of this on CodePlex

Attachments

configeditor_src.zip

Migrated CodePlex Work Item Details

CodePlex Work Item ID: '11370' Vote count: '13'

jascam commented 6 years ago

Yeah I've been having the same problem, I've been looking for an example in the All-in-One Code Framework and couldn't find anything on it either.

Displaying as you suggested would be very useful, Microsoft should include that functionality into Visual Studio as a standard template like they do with the Blank forms.

If the user could point to any exe.config file and then it is displayed the result in the grid, that would simplify editing settings and would make it easier to maintain applications built in .NET.

This comment was posted by shauney87 on 11/16/2012

jascam commented 6 years ago

This comment was posted by on 2/19/2013

jascam commented 6 years ago

We've had a feature request in our list for nearly 5 years for providing UI editing of our config files. One of the reasons we haven't done it is that it sounds too much like something that ought to exist already - it's such an obvious and general requirement.

We use a mixture of .settings files and custom ConfigurationSection/ConfigurationElements, so we'd love a solution which addressed both. (We also use good old appSettings in our web applications because IIS does provide a user interface for editing these.)

This comment was posted by DavidDylan on 2/19/2013

jascam commented 6 years ago

This comment was posted by on 2/21/2013

jascam commented 6 years ago

This comment was posted by on 2/17/2014

jascam commented 6 years ago

No new updates for this? I third this request. For us, the issue is App-level settings. It is trivial to throw Properties.Settings.Default into a PropertyGrid and go from there, but we would like to be able to edit application-level items as well.

This would become brainlessly easy if we had a way to dynamically generate a Settings (System.Configuration.ApplicationSettingsBase-derived) class that would generate both setters and getters for application-level items and be able to round-trip them. Then we could drop that object into the Property Grid and just serialize it back out when done.

This comment was posted by jtwine on 2/17/2014

jascam commented 6 years ago

This comment was posted by on 5/27/2014

jascam commented 6 years ago

This comment was posted by on 7/30/2014

jascam commented 6 years ago

This comment was posted by on 11/3/2014

jascam commented 6 years ago

This comment was posted by on 12/1/2014