Ross ROSS = Recommend OSS · open-source software intelligence for agents

Sergio0694/PolySharp

PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! 🚀 observed · 2026-08-28

github.com/Sergio0694/PolySharp · C# · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

76/100

  • Activity 84
  • Release rhythm 53
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 550
  • age_days: 1412
  • days_rel: 100
  • days_push: 100
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

2222 stars · 72 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

PolySharp is a Roslyn source generator that emits source-only polyfill types (nullability attributes, Index/Range, records support types, etc.) so newer C# language features can be used on older .NET runtimes like .NET Framework or UWP. You add the NuGet reference, set the language version to latest, and the generator automatically supplies the compiler-required 'magic types' for your target framework.

Use cases

  • use latest C# language features on .NET Framework
  • enable nullable reference type attributes in old projects
  • use records and pattern matching on UWP or .NET Standard 2.0
  • avoid upgrading runtime just to use new compiler features
  • polyfill compiler-required types via source generator

When to choose

  • you're stuck on an older .NET runtime but want modern C# syntax
  • you maintain libraries targeting .NET Standard 2.0 or .NET Framework
  • you want zero-runtime-dependency, source-only polyfills

When to avoid

  • you already target the latest .NET runtime with all BCL APIs
  • you need features requiring runtime support like static abstract interface members
  • you're on .NET Framework 3.5 where many polyfills are limited

Facets

library · maturity active

compiler developer-tools plugin-system developer-tools programming-languages compilers dotnet cross-platform csharp roslyn-source-generator polyfills nuget-package language-features downlevel

1 source

Member repositories

RepositoryRoleHealth v2
Sergio0694/PolySharpmain76

For agents

markdown · JSON · MCP: product_card(name="Sergio0694/PolySharp")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem