Why are my class name and the void keyword invalid?

It’s a known issue in the latest update to VS2017. We have it fixed for the next release. See Prize BrainPad, Trouble using MS Studio Visual and TinyCRL Project System - #4 by John_Brochue for a workaround