i'm writing t4 template generate code various classes in project.
i'd classes, process them according custom attribute, can't list of classes, nor can see i'm getting through local variables window, says have turn on native code debugging.
this code have:
<# iserviceprovider serviceprovider = (iserviceprovider)this.host; dte dte = (dte)serviceprovider.getservice(typeof(dte)); var item = dte.solution.findprojectitem(host.templatefile); var project = item.containingproject; foreach(envdte.codeelement element in project.codemodel.codeelements) { if (element.kind == envdte.vscmelement.vscmelementclass) { var myclass = (envdte.codeclass)element; //doing things myclass } } #> but if condition false. how can see variables through debugging?
Comments
Post a Comment