
Nuget Manager
- 12.8k installs
- 37.1k repo stars
- Updated July 28, 2026
- github/awesome-copilot
NuGet Manager is a skill for managing NuGet packages in .NET projects with safe CLI-based workflows.
About
NuGet Manager ensures safe management of NuGet packages in .NET projects and solutions. Developers use this skill when adding, removing, or updating package versions with strict verification and restoration workflows. The skill enforces best practices using dotnet CLI while allowing direct file edits only for version updates.
- Consistent and safe NuGet package management via dotnet CLI
- Strict procedures for version updates with verification workflow
- Support for both per-project and centralized Directory.Packages.props management
Nuget Manager by the numbers
- 12,773 all-time installs (skills.sh)
- +99 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #2 of 154 .NET & C# skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/github/awesome-copilot --skill nuget-managerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 12.8k |
|---|---|
| repo stars | ★ 37.1k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | github/awesome-copilot ↗ |
How do you safely update NuGet packages in .NET?
NuGet Manager ensures safe management of NuGet packages in .NET projects and solutions. Developers use this skill when adding, removing, or updating package versions with strict verification and rest
Who is it for?
Developers managing dependencies in .NET projects who need safe, verified workflows
Skip if: Non-.NET ecosystems or manual package file editing without verification
When should I use this skill?
A developer adds, removes, or updates NuGet package versions in a .NET project or solution file.
What you get
Updated PackageReference entries, restored .NET solutions, and verified compatible NuGet dependency versions across project files.
- updated PackageReference entries
- restored solution
- verified compatible package versions
Files
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).
dotnetCLI available on yourPATH.jq(JSON processor) OR PowerShell (for version verification usingdotnet 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). - Update the version string in the appropriate file.
- Immediately run
dotnet restoreto verify compatibility.
Workflows
Adding a Package
Use dotnet add [<PROJECT>] package <PACKAGE_NAME> [--version <VERSION>]. Example: dotnet add src/MyProject/MyProject.csproj package Newtonsoft.Json
Removing a Package
Use dotnet remove [<PROJECT>] package <PACKAGE_NAME>. Example: dotnet remove src/MyProject/MyProject.csproj package Newtonsoft.Json
Updating Package Versions
When updating a version, follow these steps:
1. Verify Version Existence: Check if the version exists using the dotnet package search command with exact match and JSON formatting. Using jq: dotnet package search <PACKAGE_NAME> --exact-match --format json | jq -e '.searchResult[].packages[] | select(.version == "<VERSION>")' Using PowerShell: (dotnet package search <PACKAGE_NAME> --exact-match --format json | ConvertFrom-Json).searchResult.packages | Where-Object { $_.version -eq "<VERSION>" }
2. Determine Version Management:
- Search for
Directory.Packages.propsin the solution root. If present, versions should be managed there via<PackageVersion Include="Package.Name" Version="1.2.3" />. - If absent, check individual
.csprojfiles for<PackageReference Include="Package.Name" Version="1.2.3" />.
3. Apply Changes: Modify the identified file with the new version string.
4. Verify Stability: Run dotnet restore on the project or solution. If errors occur, revert the change and investigate.
Examples
User: "Add Serilog to the WebApi project"
Action: Execute dotnet add src/WebApi/WebApi.csproj package Serilog.
User: "Update Newtonsoft.Json to 13.0.3 in the whole solution"
Action: 1. Verify 13.0.3 exists: dotnet package search Newtonsoft.Json --exact-match --format json (and parse output to confirm "13.0.3" is present). 2. Find where it's defined (e.g., Directory.Packages.props). 3. Edit the file to update the version. 4. Run dotnet restore.
Related skills
How it compares
Pick nuget-manager over generic dependency skills when the package manager is specifically NuGet in .NET csproj or solution files.
FAQ
Does nuget-manager use dotnet CLI or manual edits?
nuget-manager prioritizes the dotnet CLI for adding, removing, and updating NuGet packages. Direct .csproj edits are allowed only for version bumps under strict verification, followed by a dotnet restore workflow.
What SDK does nuget-manager require?
nuget-manager requires a .NET SDK installed—typically .NET 8.0 or a version compatible with the target solution. Every package change triggers a verification and restore step to confirm project integrity.
Is Nuget Manager safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.