codecentric / net_automatic_interface

.Net Source Generator for Automatic Interfaces
MIT License
62 stars 14 forks source link

Way to change namespace of generated class #19

Closed Hau-Hau closed 9 months ago

Hau-Hau commented 1 year ago

Hello!

I believe it would be wonderful to have the ability to modify the namespace of the generated interfaces. For instance, this could be achieved through a parameter in attribute: [GenerateAutomaticInterface("New.Important.Namespace")] or at least through csproj configuration.

The reasoning behind implementing this feature is that we frequently desire to maintain abstractions in a distinct library, package, or namespace from the concrete implementation.

ChristianSauer commented 9 months ago

This is in 2.1.0