migrating-csharp-nullable-references

Official

Enable and resolve nullable reference types in C# projects.

Authormicrosoft
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill assists in enabling nullable reference types (NRTs) in C# projects and resolving associated warnings, ensuring null safety without compromising runtime behavior.

Core Features & Use Cases

  • Nullable Reference Type Enablement: Systematically enable NRTs in a C# project or solution, including handling project-specific settings and configurations.
  • Warning Resolution: Address and resolve CS86xx warnings related to nullable reference types, including dereference warnings and nullability annotations.
  • Rollout Strategy: Offers guidance on rollout strategies for different project sizes and activity levels, including project-wide, warnings-first, and file-by-file approaches.
  • Build and Test Integration: Provides integration with build and test commands to ensure migration does not affect existing functionality.

Quick Start

Run the migration on your C# project using the following command:

/path/to/project -enable-nullable

Dependency Matrix

Required Modules

powershell

Components

scriptsreferences

💻 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: migrating-csharp-nullable-references
Download link: https://github.com/microsoft/upgrade-agent-plugins/archive/main.zip#migrating-csharp-nullable-references

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.