- Home
- .NET code examples
- An ASP.NET Core app built with Claude AI
An ASP.NET Core app built with Claude AI
This code example provides the technical documents used to prompt Claude, and the ASP.NET Core app that it created.
You can read about our experience with Claude building a .NET application, or watch the 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.
Documents
The technical documents that we used to prompt Claude are in the Documents folder of the ZIP file.
The application
Inside TicketSystem/src/Api/appsettings.Development.json, find ConnectionStrings.ConnectionStringand point the connection string to the database server you want to use if you're not using LocalDB.
Open up TicketSystem.slnx.
Run the migrations
In Visual Studio, go to Tools > NuGet Packager Manager > Package Manager Console. Ensure that the startup project is Api and the Default project in Packager Manager Console is set to Infrastructure.
Run Add-Migration InitialCreate, and then run Update-Database. This should create the database and the tables.
Run the application
The application should start on https://localhost:63511. Navigate to https://localhost:63511/swagger. There are three endpoints you can test:
/api/tickets (POST)- Creates a new ticket/api/tickets/{id}/status (PUT)- Updates the status of a ticket. For{id}, use theIdindbo.Tickets./api/tickets/{id}/complete (PUT)- Marks the ticket as complete. For{id}, use theIdindbo.Tickets.
Latest code examples