Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type or namespace name 'Properties' does not exist

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:

enter image description here

like image 702
John Avatar asked Feb 06 '12 16:02

John


1 Answers

This issue can also crop up if you've changed the namespace.

like image 56
mattpm Avatar answered Sep 29 '22 17:09

mattpm