private string SettingsPath() { #if DEBUG return(Exe.Relative(Exe.Filename() + ".xml")); #else var path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); Directory.CreateDirectory(Path.Combine(path, Exe.Filename())); return(Path.Combine(path, Exe.Filename(), "config.xml")); #endif }