package-management

Manage NuGet package versions and dependencies in .NET solutions using CPM.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill package-management-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-management
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/package-management
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill package-management-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the management of NuGet packages in .NET projects, preventing version conflicts and ensuring consistency across your solution.

Core Features & Use Cases

  • Central Package Management (CPM): Set up and manage package versions in a single file for your entire solution.
  • Dependency Resolution: Understand and troubleshoot package conflicts and restore issues.
  • CLI Automation: Utilize dotnet CLI commands for adding, removing, and listing packages efficiently.
  • Use Case: When setting up a new .NET solution, use this Skill to configure Central Package Management, ensuring all projects use the same versions of key libraries like Serilog and xUnit.

Quick Start

Use the package-management skill to add the Serilog.Sinks.Console NuGet package to your project.

Frequently Asked Questions about package-management

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

FAQPage Schema
How do I manage NuGet package versions consistently across multiple .NET projects?

Central Package Management (CPM) allows you to manage NuGet package versions consistently across multiple .NET projects by defining them in a single Directory.Packages.props file. This prevents version conflicts and ensures solution-wide consistency.

How do I add or remove a NuGet package using the dotnet CLI?

You can add or remove NuGet packages using the dotnet CLI by executing atomic operations like `dotnet add package` or `dotnet remove package`. This Skill automates these commands to efficiently handle package references within your .NET solution.

What is the best way to troubleshoot NuGet dependency conflicts in a .NET solution?

The best way to troubleshoot NuGet dependency conflicts is to use Central Package Management and the `dotnet list package` command. This approach helps identify and resolve version conflicts and restore issues across your .NET projects.

Can I use Central Package Management with existing .NET solutions that have version conflicts?

Yes, you can use Central Package Management with existing .NET solutions to resolve version conflicts. By migrating package versions to the Directory.Packages.props file, you centralize version control and enforce consistent dependencies across all projects.

Why do I need Central Package Management for my .NET solution?

You need Central Package Management to prevent version conflicts and ensure package consistency across multiple projects. By centralizing versions in Directory.Packages.props, you eliminate manual version tracking and dependency restore issues.

What are the limitations of using the dotnet CLI for package management?

The limitations of using the dotnet CLI for package management involve manually handling complex dependency resolution scenarios. While atomic commands handle adding and removing packages, resolving deep version conflicts requires configuring Central Package Management.