JsonApiDotNetCore icon indicating copy to clipboard operation
JsonApiDotNetCore copied to clipboard

Update controller source generator to incremental

Open bkoelman opened this issue 1 year ago • 0 comments

WebAPI controller classes in JsonApiDotNetCore are generated at compile-time using our source generator. We can potentially improve the IDE responsiveness by switching to the newer incremental roslyn API. Note this does not affect build time.

There's a great series with all the gotchas at https://andrewlock.net/creating-a-source-generator-part-9-avoiding-performance-pitfalls-in-incremental-generators. Requires. NET 7 or higher.

bkoelman avatar Jan 30 '24 21:01 bkoelman