Drizin / CodegenCS

C# Toolkit for Code Generation (T4 alternative!)
MIT License
223 stars 30 forks source link

Assembly and reflection access #20

Closed Nelfstor closed 2 months ago

Nelfstor commented 11 months ago

Hello!

Is there is a way to access assembly and reflection of the current projects?

Drizin commented 11 months ago

CodegenCS templates can read from any data source. You probably want to run the template on your PostBuild, reading (on your own) the generated DLLs using reflection. If you want to enrich the project by adding new sources yet during build time then you might need Roslyn - check this sample