Migrate Nullable References

Enable nullable reference types in a C# project and systematically resolve all warnings. USE FOR: adopting NRTs in existing codebases, file-by-file or project-wide migration, fixing CS8602/CS8618/CS86xx warnings, annotating APIs for nullability, cleaning up null-forgiving operators, upgrading dependencies with new nullable annotations. DO NOT USE FOR: projects already fully migrated with zero warnings (unless auditing suppressions), fixing a handful of nullable warnings in code that already has NRTs enabled, suppressing warnings without fixing them, C# 7.3 or earlier projects. INVOKES: Get-NullableReadiness.ps1 scanner script.

bouclem e7e77af 6 files · 66.1 KB Updated 7 repo stars

File contents

bouclem/skills/tree/main/SKILLS/DEVTOOLS/REFACTORING/001-migrate-nullable-references commit e7e77afdb7

Frequently asked questions

npx skillmds@latest add bouclem/migrate-nullable-references