I am working on understanding how to use settings files within my application. I had used them in .Net 1.1 with the Enterprise Library but it seems they've changed quite a bit since .Net 2.0 was released. I am currently using VS2008 and my app is targeted for .Net 3.5 but what I'm trying to do was introduced in .Net 2.0.
I like the interface and functionality that is gained from using the default settings for my application but I would like to move those settings into an external file.
I have added a "Settings file" to my application but cannot figure out how to address the specific file to retrieve the settings.
I have read numerous articles on configuration in .Net 2.0 but it seems overly complex compared to the settings files that are available.
I have 2 questions when it comes to external settings:
1. How do I access the info in a .settings file that has been added to my application.
2. Everything I've read about using the system.configuration namespace and its options seems like it would work but is overly complex. Is there a reason I should follow this route instead?
Any assistance or info you can provide is appreciated.
Thanks,
Josh
I like the interface and functionality that is gained from using the default settings for my application but I would like to move those settings into an external file.
I have added a "Settings file" to my application but cannot figure out how to address the specific file to retrieve the settings.
I have read numerous articles on configuration in .Net 2.0 but it seems overly complex compared to the settings files that are available.
I have 2 questions when it comes to external settings:
1. How do I access the info in a .settings file that has been added to my application.
2. Everything I've read about using the system.configuration namespace and its options seems like it would work but is overly complex. Is there a reason I should follow this route instead?
Any assistance or info you can provide is appreciated.
Thanks,
Josh