·microsoft-extensions-configuration
</>

microsoft-extensions-configuration

aaronontheweb/dotnet-skills

Microsoft.Extensions.Options-Muster, einschließlich IValidateOptions, stark typisierte Einstellungen, Validierung beim Start und das Optionsmuster für eine saubere Konfigurationsverwaltung.

23Installationen·0Trend·@aaronontheweb

Installation

$npx skills add https://github.com/aaronontheweb/dotnet-skills --skill microsoft-extensions-configuration

SKILL.md

The Problem: Applications often fail at runtime due to misconfiguration - missing connection strings, invalid URLs, out-of-range values. These failures happen deep in business logic, far from where configuration is loaded, making debugging difficult.

The Solution: Validate configuration at startup. If configuration is invalid, the application fails immediately with a clear error message. This is the "fail fast" principle.

Key Point: .ValidateOnStart() is critical. Without it, validation only runs when the options are first accessed, which could be minutes or hours into application runtime.

Microsoft.Extensions.Options-Muster, einschließlich IValidateOptions, stark typisierte Einstellungen, Validierung beim Start und das Optionsmuster für eine saubere Konfigurationsverwaltung. Quelle: aaronontheweb/dotnet-skills.

Original anzeigen

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/aaronontheweb/dotnet-skills --skill microsoft-extensions-configuration
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-05
Aktualisiert
2026-02-18

Schnelle Antworten

Was ist microsoft-extensions-configuration?

Microsoft.Extensions.Options-Muster, einschließlich IValidateOptions, stark typisierte Einstellungen, Validierung beim Start und das Optionsmuster für eine saubere Konfigurationsverwaltung. Quelle: aaronontheweb/dotnet-skills.

Wie installiere ich microsoft-extensions-configuration?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/aaronontheweb/dotnet-skills --skill microsoft-extensions-configuration Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor

Wo ist das Quell-Repository?

https://github.com/aaronontheweb/dotnet-skills