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
Post a Comment