An academic query about T4 templates -


ok, i'm thinking little ahead here in current project, apologize how vague question going be. possible in 1 project of solution have t4 template references 1 of other assemblies in solution , inspects exported types of other assembly , uses metadata build other code? don't need reference types in assembly directory, need able list of of them derive particular base class , metadata them. i'm thinking of doing objects built common base class , dumped database nhibernate easy way generate dto classes them throwing @ client during ajax calls. i'm not looking absolutely perfect solution, 1 gets lot of easy cases out of way.

again, don't have specific example. i'm few days out running problem head-on, occurred me option might cover lot of cases might run into.

thoughts?

yep, should fine - can use <#@ assembly #> directive , use $(solutiondir) , other vs macros starting point navigate other project's output. can use reflection read metadata you're interested in.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -