简体   繁体   中英

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!

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.

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

All the Best Muse VSExtensions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM