AArnott / CodeGeneration.Roslyn

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

Apply to Assembly #105

Closed romerod closed 5 years ago

romerod commented 5 years ago

This is more a question than an issue, I hope you don't mind.

Is it possible to have code generation applied to the assembly, instead of a class or member?

amis92 commented 5 years ago

Yes it is now possible, added in #67.

Just apply generator-triggering attribute to the assembly target instead of a class or member, e.g. [assembly: MyCodeGeneration].

romerod commented 5 years ago

Thanks @amis92 , thats cool