Turns out there is already a TaskItem class. It is fairly general, but should work fine. If you set ItemName = "Compile" in the output element in your targets file, it will create them as compilation elements and add them to the collection. No problems
source
share