Update: I was able to solve my problem moving from RegisterTaskDefinition to RegisterTask method (Xml definition).
↧
Update: I was able to solve my problem moving from RegisterTaskDefinition to RegisterTask method (Xml definition).