dotnet / dotnet/sdk

Add a project template for source generators

Open
#49,522 2 comments 5 reactions 1 assignee Claimed by @baronfel View on GitHub
untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.
It's inconvenient that whenever I want to author a source generator, I will need to search for the document to see which packages to reference and the necessary msbuild properties and items to include.

It would be great if we can have a project template for source generators.

### Describe the solution you'd like
Add a project for source generators so that one can create a source generator by executing:

```bash
dotnet new source-generator
```

### Additional context
Add any other context or screenshots about the feature request here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.