Reputation: 13985
We need to generate a set of interfaces and classes putting them in different projects of the solution depending on the already declared types.
I think T4 Toolbox can suffice. If not, then I will create Visual Studio AddIn /VSPackage.
But I have know idea how to get the list of available types.
Upvotes: 0
Views: 54
Reputation: 19021
Currently, the only public API is to use the CodeModel/EnvDTE APIs. At a high level, you want to get a DTE Project instance, and get it's CodeModel property. From there you can walk and get types. If you're already generating source, then you might want to look at this. If T4 isn't what you want, then it's hard to give details.
Upvotes: 1