Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update controller source generator to incremental #1447

Open
bkoelman opened this issue Jan 30, 2024 · 0 comments
Open

Update controller source generator to incremental #1447

bkoelman opened this issue Jan 30, 2024 · 0 comments

Comments

@bkoelman
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant