AArnott / CodeGeneration.Roslyn

Assists in performing Roslyn-based code generation during a build.
Microsoft Public License
408 stars 60 forks source link

How generate new class #235

Closed pavelvondrasek closed 3 years ago

pavelvondrasek commented 3 years ago

Hi,

I have question. Can I use your libraries for new class generation or it is only suitable for generating partial class members?

Thank you!

AArnott commented 3 years ago

You can generate any code. At the lowest level you can introduce a new source file to the project, with whatever you want in it.