Audio Source does not contain definition for any of the Play functions...

Im having issues with my IDE, no matter how i go about referencing and calling my audio file, when ever i try to add any type of play function i get the same "AudioSource does not contain definition for “Play…”

I have tried adding the audio source component and audio clip in it to the object that script was attached to, i have tried making a new script and publicly exposing the audio clip and manualy adding it in the editor. But no matter what i do i get the same problem…

example script i tried using to trubleshoot the problem…

PS. I’m using MonoDevelope as my IDE…
Error is cs1061 and here is documentation for it:

Did anyone encounter something similar?

I have the same error on VisualStudio 2017. And I can’t put an AudioSource object from my editor to a script.

Check out weather or not you mabe named the class AudioSource, that was the problem in my case.