[MonoDevelop] Accessing configuration files

Ahmed Abdeen Hamed ahmed.elmasri at gmail.com
Sun Oct 10 14:44:51 EDT 2010

I am unable to access the solution configuration file using the C#
code. For some reason it can't find the classes from the
System.Configuration reference even though it has been imported via
using statement. Here is the code snippet:

                NameValueCollection appSettings = Configuration.AppSettings;

                for (int i = 0; i < appSettings.Count; i++)
                    Console.WriteLine("Key : {0} Value: {1}",
                      appSettings.GetKey(i), appSettings[i]);

Here is the error message:
Error CS0103: The name `Configuration' does not exist in the current
context (CS0103) (console-project)

Any clue?

More information about the Monodevelop-list mailing list