I want to write a template that generates classes based on some attributes of some properties on the already exsisting classes.
I'm pretty sure T4 templates let me do that, but what I want to do is to have those attributes defined in my class library along with the T4 template so that when you reference my DLL and use the attributes in your code, the classes still get automatically generated (it doesn't matter if they are generated as a part of the DLLs assembly, which might not even be possible, or as a part of the assembly that's referencing my DLL)
What I can do is use precompiled templates (or just some function that generates class code as a string) and then make a template in the project that references my DLL and just make a call to the generator function from inside the template. Why I don't want to do this, is because it forces the user to manually create that template in their project.