Possible Duplicate:
How to get t4 files to build in visual studio?
At build time I would like to somehow generate C# classes that will then be picked up and compiled into the binary.
I have a lot of almost identical accessor objects I need to create, each with a different name. The names of these objects is available in an xml config file as part of the project. At compile time, these objects need to be created such that they can exist within the DLL at runtime.
I have investigated T4 templates, but that appears to be post compile time, and only 1 class object is created per template which really doesn't remove the poiler plate.
Any tips would be great! -Sheldo