Invoking T4Host from Powershell

Sep 2, 2011 at 4: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 4:48 PM

Figured it out:

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