Search code examples
c#.netvisual-studio-2013app-configconfiguration-files

Properties.Settings.Default loads previous project value


I copied a version 4.1 project (VS2008) to a version 5.0 project (VS2013) and renamed all text values from 4.1 to 5.0. In the settings designer (Project -> 'ProjectName' properties) there is a setting named ProjectName. This was changed to 'AppName_5.0'.

In our 'About' screen, this setting is loaded and displayed on a label. However, in debug mode, the about screen keeps displaying 'AppName_4.1'??

label1.Text = Properties.Settings.Default.ProjectName; //Displays 4.1?

I don't understand where this value keeps coming from? In the AppName_5.0.exe.config file, the value is AppName_5.0?


Solution

  • Apparently we're using a CustomSettingsProvider, which stores the settings files in another location ... :-/