Get all methods that are decorated with a specific attribute using T4/EnvDTE
问题 I'd like to get a list of all public methods in my project that are decorated using MyAttribute using T4/EnvDTE. I know this can be done with reflection, but I don't want to load the assembly and reflect over it in a T4 template, rather, I want to use the existing code files as the source. The following is boilerplate code I found on the internet that gets a reference to the current project <#@ template debug="true" hostspecific="true" language="C#" #> <#@ assembly name="EnvDTE" #> <#@