dotnet-csharp

Develop .NET 8+ C# applications with ASP.NET Core and EF Core.

3|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/HouseGarofalo/claude-code-base --skill dotnet-csharp-housegarofalo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-csharp
Source: https://github.com/HouseGarofalo/claude-code-base/tree/main/.claude/skills/dotnet-csharp
Command: npx skills add https://github.com/HouseGarofalo/claude-code-base --skill dotnet-csharp-housegarofalo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and code examples for developing modern .NET 8+ applications using C#, streamlining the creation of robust backend services and APIs.

Core Features & Use Cases

  • Project Setup: Guidance on structuring .NET solutions, including Directory.Build.props and central package management.
  • ASP.NET Core Development: Examples for building Web APIs, Minimal APIs, and implementing controllers.
  • Entity Framework Core: Demonstrations of DbContext setup, entity configuration, and repository patterns.
  • Authentication & Authorization: Implementation details for JWT authentication and custom authorization policies.
  • Background Services: How to create and register BackgroundService for scheduled tasks.
  • Testing: Unit testing structure using xUnit, Moq, and FluentAssertions.

Quick Start

Use the dotnet-csharp skill to create a new ASP.NET Core Web API project.

Frequently Asked Questions about dotnet-csharp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a .NET 8 solution with central package management?

To structure a .NET 8 solution, use Directory.Build.props for common MSBuild properties and central package management to consolidate NuGet versions across projects. This streamlines dependency governance and ensures consistent builds across your entire backend architecture.

What's the best way to set up Entity Framework Core in an ASP.NET Core Web API?

The best way to set up Entity Framework Core is by configuring your DbContext, applying entity configurations via Fluent API, and registering the context using dependency injection in ASP.NET Core. This enables repository patterns and efficient data access for your APIs.

How do I implement JWT authentication and custom authorization policies in ASP.NET Core?

Implementing JWT authentication in ASP.NET Core involves configuring JWT bearer authentication middleware and defining custom authorization policies. This secures your web APIs by validating user tokens and enforcing specific access control requirements based on claims.

Can I use Minimal APIs instead of controllers for backend services in .NET 8?

Yes, you can use Minimal APIs in .NET 8 to build lightweight backend services without controllers. This approach reduces boilerplate while still supporting dependency injection, routing, and Entity Framework Core integration for robust API development.

How do I create a BackgroundService for scheduled tasks in ASP.NET Core?

To create a BackgroundService in ASP.NET Core, inherit from the BackgroundService base class and register it with dependency injection. This allows you to execute long-running or scheduled background tasks independently of your main web API request pipeline.

What testing frameworks should I use for unit testing C# .NET applications?

For unit testing C# .NET applications, use xUnit as the test runner, Moq for mocking dependencies, and FluentAssertions for readable assertions. This combination provides a robust structure for validating backend logic and API controller behaviors.