nuget-manager

Manage NuGet packages in .NET projects using the dotnet CLI.

4|Updated Apr 25, 2024
One-click install
npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill nuget-manager-bridgingit-gmbh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nuget-manager
Source: https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted/tree/main/.opencode/skills/nuget-manager
Command: npx skills add https://github.com/BridgingIT-GmbH/bITdevKit.Examples.GettingStarted --skill nuget-manager-bridgingit-gmbh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill ensures safe and consistent NuGet package management across .NET solutions by enforcing CLI workflows and preventing risky edits to project files.

Core Features & Use Cases

  • Enforce using dotnet CLI for adding and removing packages to maintain project integrity.
  • Support centralized version management via Directory.Packages.props or per-project csproj edits only for version updates.
  • Verify NuGet versions exist, determine where versions are managed, apply changes, and run dotnet restore to verify compatibility.

Quick Start

Use the NuGet Manager to add a package to a project. Example: dotnet add src/MyApp/MyApp.csproj package Newtonsoft.Json --version 13.0.3

Frequently Asked Questions about nuget-manager

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

FAQPage Schema
How do I manage NuGet package versions across a multi-project .NET solution?

NuGet package versions across a .NET solution can be managed centrally using Directory.Packages.props or updated directly within per-project csproj files, ensuring consistent dependency versions throughout all projects in the solution.

What is the safest way to add or remove NuGet packages in .NET projects?

The safest way to add or remove NuGet packages is by using the dotnet CLI, which enforces strict workflows that maintain project integrity and prevent risky manual edits to your project files during dependency modifications.

Does NuGet version verification check compatibility before applying updates?

NuGet version verification checks compatibility by verifying the specified package version exists on NuGet, applying the changes, and running dotnet restore to verify compatibility before finalizing the package update.

Can I use the dotnet CLI to update package versions in a Directory.Packages.props file?

You can use the dotnet CLI to update package versions managed in a Directory.Packages.props file, as centralized version management is fully supported alongside standard per-project csproj version updates for .NET solutions.

Why should I avoid manual edits to csproj files when updating dependencies?

Manual edits to csproj files should be avoided because using the dotnet CLI for package operations enforces safe workflows, maintains project integrity, and prevents risky file modifications that can break your .NET project structure.