본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)40k · #7310

nuget-manager

하는 일

이 에이전트는 .NET 프로그래밍 프로젝트의 코드 패키지를 관리하도록 돕습니다. 올바른 도구를 사용해 패키지를 안전하게 추가, 삭제, 업데이트하도록 합니다.

사용하는 경우

  • ✓새 코드 패키지를 추가해야 할 때.
  • ✓더 이상 쓰지 않는 패키지를 삭제해야 할 때.
  • ✓패키지를 새 버전으로 업데이트해야 할 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/nuget-manager/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/nuget-manager/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'MyProject' 프로젝트에 'Newtonsoft.Json' 패키지를 추가해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

패키지를 관리하기 위해 특정 .NET 명령을 사용합니다. 프로젝트를 망가뜨릴 수 있는 직접 편집은 피합니다. 업데이트할 때는 새 버전이 있는지 확인하고, 프로젝트를 복원해 모든 것이 작동하는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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).
    • Update the version string in the appropriate file.
    • Immediately run dotnet restore to 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.props in the solution root. If present, versions should be managed there via <PackageVersion Include="Package.Name" Version="1.2.3" />.
    • If absent, check individual .csproj files 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.
자주 묻는 질문

패키지를 추가하거나 삭제하려고 프로젝트 파일을 직접 편집할 수 있나요?

아니요. 패키지를 추가하거나 삭제할 때는 항상 `dotnet add package`와 `dotnet remove package` 명령을 사용해야 합니다. 직접 편집은 버전을 업데이트할 때만 허용됩니다.

업데이트 후 오류가 생기면 어떻게 되나요?

업데이트 후 오류가 생기면 에이전트가 변경을 되돌립니다. 그다음 원인을 직접 조사해야 합니다.

패키지 버전을 어디에서 업데이트해야 하는지 어떻게 아나요?

버전이 중앙 파일(`Directory.Packages.props`)에서 관리되는지, 아니면 개별 프로젝트 파일(`.csproj`)에서 관리되는지 확인하고, 올바른 위치에 업데이트를 적용합니다.

상세 정보

작성자의 원본 설명

Manage NuGet packages in .NET projects/solutions. Use this skill when adding, removing, or updating NuGet package versions. It enforces using `dotnet` CLI for package management and provides strict procedures for direct file edits only when updating versions.

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7310
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬