Does not recognize visual studio 2012

Thanks, this solved my issue!
I had started installing MSVS 2013, but aborted the install. It had set VS120COMNTOOLS in the environment variables, so deleting it solved my issue with generating project files!