I didn’t have this problem yesterday. But today when I try to build a project it is giving me compile errors (" The name `aName’ does not exist in the current context") on a script that isn’t attached to or referenced from any object or component in the current scene. And in The Build Settings dialog only the current scene is checked.
The script in question is attached to a GameObject in a different scene that IS NOT LOADED. It is listed but NOT CHECKED in the Build Settings dialog.
Funny thing is I get no errors when I run it in the Editor.