- Home
- .NET code examples
- Using Claude Code to generate C# code in a .NET project
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.
Visual Studio 2026. Version 18.0.0 or above. It will work with the free community version.
.NET 10 SDK. Version 10.0.0 or above.
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.
Related code examples