I recently installed Unity 5.

Whenever I create a new C# script, and attempt to edit it, MonoDevelop gives these two errors:

“error CS0103: The name ‘UnityEngine’ does not exist in the current context”

“error CS0103: The name ‘MonoBehaviour’ does not exist in the current context”

I tried uninstalling, deleting all remaining files, and reinstalling. But the problem persists.

How would one go about solving this problem?

In Monodevelop ; Go Project > Assembly CSharp Options > Build > General , and check if the correct Framework is setup.
When i change it from 3.5 to 4.5.2 or 4.6.1 it worked out for me, but sometimes when i restarted the Monodevelop it again automaticly changed back to 3.5

This will fix your problem:

In Monodevelop ; Go Project > Assembly CSharp Options > Build > General , and check if the correct Framework is setup. Change it from 3.5 to 4.5.

I had this problem as well, though it didn’t seem to affect anything. Simply changing the framework to 4.5 has fixed it for me.

I had this same issue. Every suggestion did not resolve it, even rolling back earlier commits, the problem persisted. Deleted all sln files, no change. The only thing that worked is using Visual Studio instead of monodevelop.