I created an App.config file in my WPF application:
This also works
WpfApplication1.Properties.Settings.Default["appsetting"].ToString()