modern-csharp
Modern C# for .NET helps you write idiomatic C# code that aligns with your repository's target framework and language-version constraints. It guides feature selection across C# versions, handles compatibility decisions, and validates that new syntax is actually supported by your project's configuration.
Modern C# for .NET upgrades your C# code to modern syntax while respecting your repo's target framework.
AI-generated summary based on this skill's SKILL.md
Install
managedcode/dotnet-skills/modern-csharp · repository language: C#
git clone https://github.com/managedcode/dotnet-skills
cp -r dotnet-skills/catalog/Tools/Modern-CSharp/skills/modern-csharp ~/.claude/skills/modern-csharpnpx skillfed install managedcode/dotnet-skills/modern-csharpFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is modern-csharp and how does it help with .NET projects?
Modern C# for .NET helps you write idiomatic C# code that aligns with your repository's target framework and language-version constraints. It guides feature selection across C# versions, handles compatibility decisions, and validates that new syntax is actually supported by your project's configuration.
Is this C# feature supported in my .NET version?
Modern C# for .NET evaluates feature compatibility by checking your project's target framework and language-version settings. It determines which C# language features are safe for your current project, accounting for both the .NET runtime version and explicit LangVersion configuration, so you know exactly what syntax you can safely adopt.
How do I upgrade C# language version in my project?
Modern C# for .NET guides you through upgrading your C# language version while respecting your repository's constraints. It helps configure language version and validate feature compatibility, ensuring that modernized code aligns with your project's target framework and won't cause runtime or compilation issues.
What C# features can I use on .NET 9?
Modern C# for .NET maps available features to your specific .NET version. It reviews which C# language features—including C# 13 and C# 14 capabilities—are compatible with .NET 9, helping you make informed decisions about which modern syntax and patterns you can safely adopt in your codebase.
How can I refactor legacy C# code to modern standards?
Modern C# for .NET reviews and refactors your codebase for idiomatic C# patterns while respecting your project's language-version constraints. It identifies opportunities to upgrade C# code to newer standards and C# idioms and best practices for .NET, ensuring modernization stays compatible with your target framework.
What's the difference between C# 13 and C# 14 feature compatibility?
Modern C# for .NET clarifies C# 13 and C# 14 feature compatibility by checking your project's LangVersion and target framework settings. It helps you select the right features for your repository, ensuring that any syntax you adopt is actually supported by your .NET version and project configuration.
SKILL.md
rendered from the published skill — quoted content, verbatim
Modern C# for .NET
Trigger On
- the repo wants more modern idiomatic C# code
- a change depends on language-version compatibility
- the team is upgrading or reviewing C# feature usage across versions
- you need to know whether a C# 13 or C# 14 feature is safe to use
Value
- produce a concrete project delta: code, docs, config, tests, CI, or review artifact
- reduce ambiguity through explicit planning, verification, and final validation skills
- leave reusable project context so
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 5 files
catalog/Tools/Modern-CSharp/skills/modern-csharp/SKILL.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/manifest.json
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/csharp-modern-features.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/migration.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/patterns.md