JasonBock / InlineMapping

Using the Compiler API for object mapping
MIT License
64 stars 11 forks source link

Update to Incremental Generation #34

Closed JasonBock closed 2 years ago

JasonBock commented 2 years ago

In .NET 6, incremental generation was added. This requires changes to the source generator, outlined rather nicely in this article. I have a bunch of generator projects that I can up, but I figured I'd start with InlineMapping and use my experiences for my other generator repos.

JasonBock commented 2 years ago

Note that this would force an update to .NET 6 only, unless I create a separate generator for #if NET6.0 and then keep the current one for .NET 5 only. I really don't know if that's worth it. Consumers can still use the 1.4.0 version if necessary. But, given that .NET 5.0 doesn't have LTS, I really should move off of it anyway.