cant add script because it doesnt exist

I am trying to attach a piece of code to an object in my game and every time I do I get an error saying it doesn’t exist and the class and file name don’t match but it does. PLease help.[29607-screenshot+(3).png|29607]

In MonoDevelop go to the Build Menu, clean the project and then build it again.

If it does not build due to some error, you will need to correct that error first.

In some cases, a restart of Unity 3D may be required.

Otherwise, after the build you should be able to attach the script.

Make sure the name of the file and class name should be same.

I resolved this issue…