-
Add an
Application Configuration File
item to your project (Right -Click Project > Add item). This will create a file calledapp.config
in your project. -
Edit the file by adding entries like
<add key="keyname" value="someValue" />
within the<appSettings>
tag. -
Add a reference to the
System.Configuration
dll, and reference the items in the config using code likeConfigurationManager.AppSettings["keyname"]
.