nuget-safe-upgrade

Upgrade NuGet packages across multi-targeted .NET projects with exclusions and build verification.

8|1|Updated Feb 5, 2018
One-click install
npx skills add https://github.com/umbrella-libraries/Umbrella --skill nuget-safe-upgrade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuget-safe-upgrade
Source: https://github.com/umbrella-libraries/Umbrella/tree/main/.ai-shared/skills/nuget-safe-upgrade
Command: npx skills add https://github.com/umbrella-libraries/Umbrella --skill nuget-safe-upgrade

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

Safely analyze and apply NuGet package upgrades in multi-targeted .NET repositories while respecting exclusions, framework-coupled dependencies, and transitive graph constraints.

Core Features & Use Cases

  • Exclusion and pattern-based rules to prevent unsafe upgrades.
  • Framework-aware version selection with per-TFM gating and optional splitting.
  • Restore and build verification to ensure upgrades do not break the solution.
  • Comprehensive reporting of successful, skipped, and blocked upgrades with guidance.

Quick Start

Invoke the NuGet safe upgrade script in Analyze mode to identify safe upgrades, then switch to Apply to implement them.

Frequently Asked Questions about nuget-safe-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely upgrade NuGet packages in a multi-targeted .NET project?

Safely upgrading NuGet packages across multiple TFMs requires honoring exclusion rules, applying per-TFM version gating, and validating upgrades through restore and build checks to prevent framework-coupled dependencies from breaking the solution.

What is transitive graph constraint checking for NuGet upgrades?

Transitive graph constraint checking ensures that upgrading a direct NuGet dependency does not break downstream packages that rely on specific versions. It analyzes the full dependency graph to block unsafe upgrades before they are applied to your .NET solution.

How do I prevent certain NuGet packages from being upgraded automatically?

To prevent certain NuGet packages from upgrading automatically, define an exclusions configuration file. The upgrade process reads these pattern-based rules to skip specified packages, ensuring unsafe or incompatible version changes are never applied.

Do I need a specific configuration file to run a safe NuGet package upgrade?

Yes, you need a nuget-upgrade-exclusions.json file, the solution path, and a compatible .NET environment to perform package resolution, apply exclusion rules, and execute restore and compilation checks.

Can I analyze NuGet package upgrades before applying them to my solution?

Yes, run the NuGet upgrade process in Analyze mode to identify safe upgrades and generate a report of successful, skipped, and blocked changes. After verifying the results, switch to Apply mode to implement the validated package updates.

What happens if a NuGet upgrade breaks the build in a multi-targeted solution?

If a NuGet upgrade breaks the build, the process performs restore and build verification to catch the failure. Comprehensive reporting details blocked upgrades and provides guidance so you can adjust exclusions or per-TFM version gating before applying changes.