| name | moai-lang-csharp |
| description | C# 12 / .NET 8 development specialist covering ASP.NET Core, Entity Framework, Blazor, and modern C# patterns. Use when developing .NET APIs, web applications, or enterprise solutions.
|
| license | Apache-2.0 |
| compatibility | Designed for Claude Code |
| allowed-tools | Read Grep Glob mcp__context7__resolve-library-id mcp__context7__get-library-docs |
| user-invocable | false |
| metadata | {"version":"2.1.0","category":"language","status":"active","updated":"2026-01-11","modularized":"true","tags":"language, csharp, dotnet, aspnet-core, entity-framework, blazor","context7-libraries":"/dotnet/aspnetcore, /dotnet/efcore, /dotnet/runtime"} |
| progressive_disclosure | {"enabled":true,"level1_tokens":100,"level2_tokens":5000} |
| triggers | {"keywords":["C#","Csharp",".NET","ASP.NET","Entity Framework","Blazor",".cs",".csproj",".sln","dotnet"],"languages":["csharp","c#"]} |
C# 12 / .NET 8 Development Specialist
Modern C# development with ASP.NET Core, Entity Framework Core, Blazor, and enterprise patterns.
Quick Reference
Auto-Triggers: .cs, .csproj, .sln files, C# projects, .NET solutions, ASP.NET Core applications
Core Stack:
- C# 12: Primary constructors, collection expressions, alias any type, default lambda parameters
- .NET 8: Minimal APIs, Native AOT, improved performance, WebSockets
- ASP.NET Core 8: Controllers, Endpoints, Middleware, Authentication
- Entity Framework Core 8: DbContext, migrations, LINQ, query optimization
- Blazor: Server/WASM components, InteractiveServer, InteractiveWebAssembly
- Testing: xUnit, NUnit, FluentAssertions, Moq
Quick Commands:
To create a new .NET 8 Web API project, run dotnet new webapi with -n flag for project name and --framework net8.0.
To create a Blazor Web App, run dotnet new blazor with -n flag for project name and --interactivity Auto.
To add Entity Framework Core, run dotnet add package Microsoft.EntityFrameworkCore.SqlServer followed by Microsoft.EntityFrameworkCore.Design.
To add FluentValidation and MediatR, run dotnet add package FluentValidation.AspNetCore and dotnet add package MediatR.
Module Index
This skill uses progressive disclosure with specialized modules for deep coverage:
Language Features
- C# 12 Features - Primary constructors, collection expressions, type aliases, default lambdas
Web Development
Data Access
Architecture Patterns
Reference Materials
Implementation Quick Start
Project Structure (Clean Architecture)
Organize projects in a src folder with four main projects. MyApp.Api contains the ASP.NET Core Web API layer with Controllers folder for API Controllers, Endpoints folder for Minimal API endpoints, and Program.cs as the application entry point. MyApp.Application contains business logic including Commands folder for CQRS Commands, Queries folder for CQRS Queries, and Validators folder for FluentValidation. MyApp.Domain contains domain entities including Entities folder for domain models and Interfaces folder for repository interfaces. MyApp.Infrastructure contains data access including Data folder for DbContext and Repositories folder for repository implementations.