Cause: tried to access method org.gradle.api.tasks.Exec.exec()V from class XXXXXXX works in milestone-3, fails in 5 & 6

As I said, a better solution is not to inherit from Exec and use project.exec() instead. Why expose all the generic Exec functionality to users of VisualStudioExec?

I haven’t seen any docs or examples for writing a task in Java - I haven’t looked very hard either, but do you have a link handy?

I will look into project.exec() … now that I know about it. (Didn’t see that mentioned in the tutorial or linked from the Exec docs.)

… back from a quick test…

project.exec() looks like it solves my problems! Thanks!