Using Claude Code to generate code in a .NET project

This code example provides the ASP.NET Core app we used to prompt Claude Code to migrate Controllers to Minimal APIs, as well as the CLAUDE.md file.

You can read about our experience with Claude Code in a .NET project, or watch this video:

Download the code example

You'll need to fill out the code example form. We will send you an email where you can download the code example.

Software

This is the software that will need to be installed onto your machine.

CLAUDE.md file

The CLAUDE.md file that we used when prompting Claude Code is in the root of the project.

Claude Code changes

The changes Claude Code made are in TicketingSystem.Api/Endpoints where it created separate endpoint classes for each of the Minimal API groups.