I’m regularly asked what’s the best way to upgrade an MSBuild-based build process to a Workflow Foundation-based build process and one of the most important parts of this is how to leverage the investment and dependence you have on any custom MBBuild tasks you’ve written. This post outlines four different ways you can make your custom MSBuild tasks callable from a Workflow Foundation workflow.
Use MSBuild Activity to call MSBuild wrapper around MSBuild task
Pros:
Cons:
Wrap MSBuild task in a custom Workflow Activity
Rewrite MSBuild task as a Workflow Activity
Extract custom task logic into a POCO class and provide an MSBuild Task and Workflow Activity adapters