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

Source generator samples #5125

Open
am11 opened this issue Apr 29, 2022 · 1 comment
Open

Source generator samples #5125

am11 opened this issue Apr 29, 2022 · 1 comment

Comments

@am11
Copy link
Member

am11 commented Apr 29, 2022

In .NET 6 and upcoming .NET 7, new source generators were added in runtime libraries. Given the other useful runtime related samples in this repo (https://github.com/dotnet/samples/tree/main/core), it would be nice to have a sample per generator which demonstrates how to use it in standalone scenarios.

  • JsonSerializableAttribute (net6.0)
  • LoggerMessageAttribute (net6.0)
  • LibraryImportAtrribute (net7.0)
  • RegexGeneratorAttribute (net7.0)

cc @jkoritzinsky

@IEvangelist
Copy link
Member

Thank you for this recommendation. I do plan on creating content for the Regex source generation, captured here: dotnet/docs#30289

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

No branches or pull requests

2 participants