Skip to main content
.NETStandard2.0

Source Generator to help multi-targeting projects.

Published
Jun 25, 2023
3y ago
Total Downloads
685.5K
685,519

Install

dotnet add package Meziantou.Polyfill --version 1.0.10
ProductVersions
.NET Standard
netstandard2.0

README

Meziantou.Polyfill

Source Generator that adds polyfill methods and types. This helps working with multi-targeted projects.

How to add a new polyfill

  • Create a new file named <xml documentation id>.cs in the project Meziantou.Polyfill.Editor
  • Run Meziantou.Polyfill.Generator

Notes:

  • All files must be self contained. Use a file class if needed.
  • If you need to generate a file only when another polyfill is generated, add // when <xml documentation id> in the file

Changes from Previous Version

No structural changes between v1.0.9 and v1.0.10.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.