nuget-manager

Installation
Summary

NuGet package management for .NET projects using dotnet CLI with strict workflows for adds, removes, and version updates.

  • Enforces dotnet add and dotnet remove commands for package operations; direct file edits only allowed for version changes
  • Requires version verification via dotnet package search before updates, with support for both jq and PowerShell parsing
  • Supports centralized version management via Directory.Packages.props or per-project .csproj configuration
  • Mandatory dotnet restore verification after any version change to ensure compatibility
SKILL.md

NuGet Manager

Overview

This skill ensures consistent and safe management of NuGet packages across .NET projects. It prioritizes using the dotnet CLI to maintain project integrity and enforces a strict verification and restoration workflow for version updates.

Prerequisites

  • .NET SDK installed (typically .NET 8.0 SDK or later, or a version compatible with the target solution).
  • dotnet CLI available on your PATH.
  • jq (JSON processor) OR PowerShell (for version verification using dotnet package search).

Core Rules

  1. NEVER directly edit .csproj, .props, or Directory.Packages.props files to add or remove packages. Always use dotnet add package and dotnet remove package commands.
  2. DIRECT EDITING is ONLY permitted for changing versions of existing packages.
  3. VERSION UPDATES must follow the mandatory workflow:
    • Verify the target version exists on NuGet.
    • Determine if versions are managed per-project (.csproj) or centrally (Directory.Packages.props).
Related skills

More from github/awesome-copilot

Installs
10.1K
GitHub Stars
32.8K
First Seen
Jan 20, 2026