Source generator samples
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 5.1k
- Avg merge
- 9h 11m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.