Get rid of the <GeneratedDerived>On</...> line in msbuild.
Fail when template-rule arguments are not deducable from method-result type