dotnet-aspnet-core

Guide building, debugging, and modernizing ASP.NET Core applications.

466|35|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-aspnet-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-aspnet-core
Source: https://github.com/managedcode/dotnet-skills/tree/main/skills/dotnet-aspnet-core
Command: npx skills add https://github.com/managedcode/dotnet-skills --skill dotnet-aspnet-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers build, debug, and modernize ASP.NET Core applications by providing guidance on correct hosting, middleware, security, configuration, logging, and deployment patterns.

Core Features & Use Cases

  • Build Modern Apps: Create robust web APIs, Blazor apps, and more with current .NET best practices.
  • Debug & Optimize: Troubleshoot request pipeline issues and improve performance.
  • Secure Applications: Implement authentication, authorization, and secure configuration.
  • Use Case: You're working on an ASP.NET Core web API and need to ensure your middleware is ordered correctly for authentication and routing, or you need to implement secure JWT authentication.

Quick Start

Use the dotnet-aspnet-core skill to review the middleware order in the provided Program.cs file.

Frequently Asked Questions about dotnet-aspnet-core

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

FAQPage Schema
How do I order ASP.NET Core middleware for authentication and routing?

To configure ASP.NET Core middleware correctly, add UseAuthentication and UseAuthorization in the proper sequence within your request pipeline, ensuring routing is registered before authorization endpoints are reached. This prevents security bypasses and routing failures.

What is the best way to choose between Blazor and Minimal APIs for web development?

Choosing between Blazor and Minimal APIs depends on your application's UI requirements; Blazor handles interactive client-side interfaces, while Minimal APIs build lightweight backend web APIs. Evaluate your project needs to select the correct current .NET approach.

How do I implement secure JWT authentication in an ASP.NET Core web API?

Implementing secure JWT authentication in ASP.NET Core involves configuring authentication middleware, setting token validation parameters, and applying authorization policies to protect your web API endpoints using current .NET security patterns.

Why does my ASP.NET Core request pipeline fail to reach controller endpoints?

ASP.NET Core request pipeline failures often stem from incorrect middleware ordering, where routing must precede endpoint execution. Review your Program.cs configuration to ensure UseRouting and endpoint mapping are placed correctly.

Can I use Blazor with existing ASP.NET Core controller APIs?

Yes, Blazor can integrate with existing ASP.NET Core controller APIs within the same web development project, allowing you to build interactive UIs while leveraging server-side controller-based endpoints for data access.