I’m gradually getting up to speed on WPF. However, as expected in any language or platform these days, there are slightly thorny questions and answers that aren’t always easy to find. Here’s one to start with. Where is the location of the application settings file?
Add a reference to System.Configuration:
Configuration config =
ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
if (config != null && !String.IsNullOrEmpty(config.FilePath))
Console.WriteLine("Local user config path: {0}", config.FilePath);