It would be nice to have a well formatted error message when RegisterTaskDefinition is called with a task that has 0 or more than 32 actions, as both are not supported by Windows.
Currently you only get a non descriptive Exception (seems to originate from COM), that does not help with debugging.
Currently you only get a non descriptive Exception (seems to originate from COM), that does not help with debugging.