Invoking T4Host from Powershell

Sep 2, 2011 at 5:18 PM

Is there a way I can invoke the T4Host to transform my template from within powershell? I'd like to store the result of the transformed template in a variable in my powershell script rather than directly producing the ProjectItem.

Sep 2, 2011 at 5:48 PM

Figured it out:

You need to call Invoke-ScaffoldTemplate with a null OutputPath.