Page 1 of 1

.NET 5 Source Generation Support

Posted: Mon 05 Apr 2021 14:10
by trb5016
.NET 5 introduced a new way to do source generation:
https://devblogs.microsoft.com/dotnet/i ... enerators/

Are there any plans to implement this functionality (as an option?) vs. the traditional generation of class files.

Seems like it could be a huge benefit for source control because it would eliminate the files for all the entity classes that are tracked. It also seems like it would be a fairly low effort to convert the T4 template to produce the source generator code (something we've been considering doing in-house ourselves, but don't want to do it if there's a "standard" approach on the horizon)

Thanks


EDIT: As soon as I posted this I saw the 'suggestions' sticky, so I created an item on the uservoice site:
https://devart.uservoice.com/forums/386 ... on-support

Re: .NET 5 Source Generation Support

Posted: Tue 06 Apr 2021 11:18
by Shalex
Thank you for your suggestion. We will investigate the question and notify you about the result. There is no timeframe at the moment.