Custom Scripting in SDK2?

I’m trying to add a simple script to an object and I get a message saying that my “…script needs to be derived from Monobehavior”… All my script does is output a debug message on start. Has anyone else had an issue like this?
Beginner here, please go easy on me.