🎯

dotnet-update-packages

🎯Skill

from im5tu/dotnet-skills

VibeIndex|
What it does

Automatically lists and updates outdated NuGet packages in .NET projects, guiding users through dependency management with interactive confirmation.

πŸ“¦

Part of

im5tu/dotnet-skills(10 items)

dotnet-update-packages

Installation

Quick InstallInstall with npx
npx skills add im5tu/dotnet-skills
πŸ“– Extracted from docs: im5tu/dotnet-skills
1Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Lists and updates outdated NuGet packages in .NET projects. Use when the user mentions updating packages, checking for outdated dependencies, or upgrading package versions.

Overview

# .NET Package Updates

> Note: This skill requires .NET 10 SDK or later. The dotnet package update command does not exist in .NET 8-9.

When to Use

This skill applies when the user:

  • Asks about outdated NuGet packages
  • Wants to update dependencies in a .NET project
  • Mentions package version upgrades
  • Discusses dependency management in .NET

Workflow

  1. List outdated packages (including transitive) using:

```bash

dotnet package list --outdated --include-transitive --format json

```

  1. Check for empty results - If no outdated packages found, inform the user and stop
  1. Parse output to identify:

- Projects with outdated packages

- Whether each package is direct or transitive

  1. Analyze project dependencies by reading elements in each csproj
  1. Present findings in a readable format showing project, package name, current β†’ latest version
  1. Confirm with user before making changes - ask which option:

- All packages

- Specific packages by name

- Cancel

  1. Update packages per project with --project parameter:

- Update leaf projects first (no dependencies)

- Then update dependent projects

- Independent branches can run in parallel

```bash

dotnet package update --project

```

  1. Verify with dotnet build
  1. If build fails, ask user:

- Fix automatically (review errors, apply fixes)

- Fix manually (show errors, let user handle)

  1. Report results - summarize what was updated and the final build status

Key Commands

| Command | Purpose |

|---------|---------|

| dotnet package list --outdated --include-transitive --format json | List outdated packages (incl. transitive) |

| dotnet package update --project | Update specific package in project |

| dotnet package update --project | Update all packages in project |

Transitive vs Direct Packages

  • Direct: Explicitly in csproj. Update directly.
  • Transitive: Pulled in by dependencies. Marked [T] in output.

- To update: update the parent package, or add direct reference to pin version

Error Handling

  • If dotnet package list fails: Check if we're in a .NET project directory
  • If dotnet package update fails for a specific package: Report it and continue with others
  • If build fails after updates:

1. Parse the build errors

2. Ask user: fix automatically or manually?

3. If automatic: analyze errors and apply fixes

4. Re-run build to verify

Notes

  • Requires .NET 10+ SDK for dotnet package update
  • Always use --project parameter to update per-project
  • Update in dependency order: leaves first, then dependents
  • Always confirm with user before updating
  • Run build after updates to catch breaking changes

More from this repository9

🎯
dotnet-enable-testing-platform🎯Skill

Enables and configures testing platforms and frameworks for .NET projects, streamlining test setup and infrastructure.

🎯
dotnet-source-gen-logging🎯Skill

Transforms .NET logging calls to use LoggerMessage source generator for high-performance, AOT-compatible logging with zero boxing overhead.

🎯
dotnet-json-polymorphic🎯Skill

Converts JSON payloads with polymorphic type handling, enabling dynamic deserialization of complex .NET object hierarchies.

🎯
dotnet-source-gen-options-validation🎯Skill

Converts options validation to compile-time source generator for AOT-compatible, reflection-free validation at startup.

🎯
dotnet-source-gen-json🎯Skill

Generates JSON serialization and deserialization code for .NET classes using source generators, improving performance and reducing boilerplate.

🎯
dotnet-source-gen-regex🎯Skill

Converts .NET regex instances to compile-time source-generated implementations for improved performance and AOT compatibility.

🎯
dotnet-centralise-packages🎯Skill

Centralizes NuGet package versions across .NET projects by creating a single `Directory.Packages.props` file and updating project references.

🎯
dotnet-enable-autocomplete🎯Skill

Enables dotnet CLI tab autocomplete across multiple shells, automatically detecting .NET version and configuring shell-specific completion scripts.

🎯
dotnet-aot-analysis🎯Skill

Analyzes and configures .NET projects for Native AOT compatibility, applying source generators and optimizing AOT deployment settings.