Configuration manager question
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace ConsoleApplication111
{
class Program
{
static void Main(string[] args)
{
System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
Console.WriteLine(ConfigurationManager.AppSettings["Foo"]);
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<appSettings>
<add key="Foo" value="Some text here"/>
</appSettings>
I want to read from the xml file but this does not seem to work can you help???