dotnet-multi-targeting
CommunityMaster .NET TFM compatibility
AuthorAGIBuild
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidance on targeting multiple .NET Target Framework Monikers (TFMs) and using newer C# language features with older TFMs, ensuring your libraries and applications remain compatible across diverse .NET environments.
Core Features & Use Cases
- Polyfill Strategies: Leverages PolySharp and SimonCropp/Polyfill for backporting language features and BCL APIs.
- Conditional Compilation: Guides on using
#ifdirectives for runtime behavior differences and platform-specific APIs. - Project Configuration: Demonstrates best practices for
.csprojmulti-targeting, conditional package references, and TFM-specific source files. - API Validation: Explains how to use
EnablePackageValidationand theApiCompattool to ensure API consistency across TFMs. - Use Case: You are developing a .NET library that needs to support .NET 8.0 and .NET 10.0. This Skill helps you use C# 14 features like
requiredmodifiers andinitproperties on .NET 10.0 by providing the necessary polyfills and project configurations.
Quick Start
Use the dotnet-multi-targeting skill to configure your .NET project to support both net8.0 and net10.0 TFMs using PolySharp and Polyfill.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-multi-targeting Download link: https://github.com/AGIBuild/Agibuild.Fulora/archive/main.zip#dotnet-multi-targeting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.