dotnet / dotnet/samples

Source generator samples

Open
#5,125 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.