0
Why app.Config doesn't find Boolean settings?
I have a problem with my app.config file, what happens is that all user settings work perfectly, except booleans, even if they exist and everything, does not find as their "reference", that is to say when writing the code marks the following error: Error CS1061 'Settings' does not contain a definition for 'Theme' and no extension method 'Theme' accepting a first argument of type 'Settings' could be found (are you missing a using directive or an assembly reference?) line of code is as follows: if (Reminders.Settings.Default.Theme == false) {// Code} The error is marked in the "Theme" part
1 ответ
0
So you created a setting via
Project -> <application name> Properties
Name = Theme
Type = bool
Scope = user
Then tried to acces this setting via
if (Properties.Settings.Default.Theme == true)
{
}
If I test this in my visual studio express, I do not get a squilly line.
I seems like the setting has not been made ?
Why you use "Reminders"