Yes, this is a bug. TargetMobile is missing from both autocomplete and the compiler, so typing it manually won’t work either.
I’ve logged it to add TargetMobile and correct the underlying target mapping, which currently treats Mobile projects as Command Line projects for these directives. Thanks for reporting it.