Cannot add script to anything,Can't add script

All the scripts I have written for the past few weeks suddenly do not work. For some reason, I cannot add a script to any object, not even a blank new script. Everything just magically stopped working today. I create a new BLANK script and it says it cannot locate the script class.,All the scripts I wrote for the past few weeks suddenly stopped working today. Every single script that I have previously written do not work. I cannot even add a blank script to any object. There is nothing wrong with my code. Everything worked for the past few weeks and just suddenly stopped working. The only way I can attach a script to an object is if I create a new one under the object, but then I cannot add it to another object.

Does the name of your script match the name of the class in your script?

Thank you for your help. I managed to fix it by removing all the asset files from the folder and then adding them back in one by one to determine the file causing all the trouble. There was one file that had compilation errors that was preventing all the other files from working. Really strange because the file was working fine the past couple of weeks. Must have accidentally changed something and forgot about that.