Shop/
Pick any file or folder on the left to see what it is, why it exists, when you add it and the mistakes people make with it. Switch the stage to watch the project grow.
# Create the solution (a .slnx file by default on the .NET 10 SDK)
mkdir Shop && cd Shop && dotnet new sln -n Shop# Create the API project (add --use-controllers for controllers instead of minimal APIs)
dotnet new webapi -n Shop.Api -o src/Shop.Api# Repository files from the official item templates
dotnet new gitignore && dotnet new editorconfig# Growing: class libraries for the clean architecture split
dotnet new classlib -n Shop.Domain -o src/Shop.Domain && dotnet new classlib -n Shop.Application -o src/Shop.Application && dotnet new classlib -n Shop.Infrastructure -o src/Shop.Infrastructure# Growing: unit and integration test projects
dotnet new xunit -n Shop.UnitTests -o tests/Shop.UnitTests && dotnet new xunit -n Shop.IntegrationTests -o tests/Shop.IntegrationTests# Growing: shared build settings, central package versions and a pinned SDK
dotnet new buildprops && dotnet new packagesprops && dotnet new globaljson# Growing: the EF Core CLI as a local tool
dotnet new tool-manifest && dotnet tool install dotnet-ef# Add every project to the solution
dotnet sln add src/*/*.csproj tests/*/*.csproj# Expert: Aspire AppHost and ServiceDefaults projects
dotnet new aspire-apphost -n Shop.AppHost -o src/Shop.AppHost && dotnet new aspire-servicedefaults -n Shop.ServiceDefaults -o src/Shop.ServiceDefaults