I’m trying to use application settings in my project.
When I try the following line of code in the project, I get an error.
TransferLogs.Properties.Settings.Default.ValleyLastRun = timeNow;
The resulting error is:
The type or namespace name ‘Properties’ does not exist in the namespace ‘Williams.TransferLogs’ (are you missing an assembly reference?)
I have the setting “ValleyLastRun” defined as a DateTime on my Project->Properties->Settings page. I don’t know why I can’t reference the setting in my project.
Here’s the solution window:

The problem is related to your resource file. Per default the settings are generated as internal. You can change that in the dropdown box above the settings.
There is sometimes a problem with the constructor of this class because it remains internal. You can change that manually but after every edit of the Settings it will be reset to internal.