
Description
Migrate Nullable References is an agent skill for turning on C# nullable reference types in an existing project and working through the warnings until none are left. The outcome is a project or solution with nullable enabled, zero nullable warnings, and public API surfaces annotated so that consumers get accurate nullability information. It fits adopting nullable types in an existing codebase, either file by file or all at once, resolving the CS86xx nullable warnings that appear after the feature is enabled, and annotating a library's public surface. It also covers new warnings that arrive when a dependency adds its own annotations, and reviewing existing suppressions to find ones that can be removed. It does not apply when the project already has zero warnings, when the user only wants to suppress warnings, which the skill advises against, or when the code targets C# 7.3 or earlier, which does not support nullable reference types. The skill page carries a notice that it contains shell command directives that may run system commands, so review it before installing. It is part of the dotnet/skills repository.…
Highlights
- Enables nullable reference types in an existing project
- Works through CS86xx warnings until none remain
- Annotates a library's public API surface
- Reviews suppressions for ones that can be removed
Ratings & Reviews
No ratings yet
Be the first to rate migrate-nullable-references.
People also visit
migrate-nullable-references FAQ
What does this skill do?
It enables C# nullable reference types in a project or solution and resolves the resulting warnings, so the compiler and consumers get reliable nullability information.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-nullable-references in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
Is there a warning about running commands?
Yes. The page shows Contains Shell Commands: This skill contains shell command directives that may execute system commands. Review carefully before installing.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-nullable-references alternatives?
Popular alternatives to migrate-nullable-references include csharp-refactoring, modern-csharp-coding-standards and migrate-dotnet10-to-dotnet11. See all migrate-nullable-references alternatives





