Skip to content

Add a project template for source generators #49522

@hez2010

Description

@hez2010

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:

dotnet new source-generator

Additional context

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

Activity

baronfel

baronfel commented on Jun 22, 2025

@baronfel
Member

Hey @jaredpar - does Roslyn have a tracking issue for this already?

jaredpar

jaredpar commented on Jun 25, 2025

@jaredpar
Member

No.

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

Metadata

Metadata

Assignees

Labels

untriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jaredpar@baronfel@hez2010

      Issue actions

        Add a project template for source generators · Issue #49522 · dotnet/sdk