Daniel Elliott
Daniel Elliott

Reputation: 22857

T4 Templates and Visual Studio Item Templates

Is it possible to create a Visual Studio item template that generates from a T4 template?

My google-fu does not seem powerful enough to yield an answer!

Upvotes: 3

Views: 1578

Answers (2)

BALKANGraph
BALKANGraph

Reputation: 2041

Yes you can, actually ASP.NET MVC uses this approach when creating View item from Controller item

All the Best Muse VSExtensions

Upvotes: 0

Oleg Sych
Oleg Sych

Reputation: 227

Yes, you need to use GAX for that. It has a (rather limited implementation of) custom T4 host that allows you to use T4 as a template language.

Upvotes: 4

Related Questions