You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/nuget-manager/SKILL.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,12 @@ description: 'Manage NuGet packages in .NET projects/solutions. Use this skill w
9
9
10
10
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.
11
11
12
+
## Prerequisites
13
+
14
+
- .NET SDK installed (typically .NET 8.0 SDK or later, or a version compatible with the target solution).
15
+
-`dotnet` CLI available on your `PATH`.
16
+
-`jq` (JSON processor) OR PowerShell (for version verification using `dotnet package search`).
17
+
12
18
## Core Rules
13
19
14
20
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.
- Search for `Directory.Packages.props` in the solution root. If present, versions should be managed there via `<PackageVersion Include="Package.Name" Version="1.2.3" />`.
@@ -53,7 +62,7 @@ When updating a version, follow these steps:
53
62
54
63
### User: "Update Newtonsoft.Json to 13.0.3 in the whole solution"
0 commit comments