本文へ移動
cccskills
無料GitHub で公開

nuget-package-manager

Inspect and update NuGet package families using ManagedCode NuGetPackageManager, the nuget-manager CLI, or its VS Code extension. USE FOR: checking outdated packages; dry-run family reviews; applying reviewed literal package and explicit project SDK version updates. DO NOT USE FOR: adding/removing packages; dependency graph resolution; authenticated private-feed setup. INVOKES: inspect declarations, preview and review exact versions, apply authorized changes, then restore and run focused regressions.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md6.2 KB
  • manifest.json83 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

NuGet Package Manager

Trigger On

  • Checking outdated NuGet declarations with nuget-manager.
  • Reviewing or applying one package family, such as Microsoft.Orleans, across projects and Central Package Management files.
  • Using the ManagedCode NuGet Package Manager extension in VS Code.

Workflow

  1. Install the public tool and confirm its current help.
  2. Select a workspace, family, policy and prerelease scope; check feeds and preview exact edits.
  3. Review the owning files and target versions, apply the authorized selection, then restore, build and run focused regressions.

Install

dotnet tool install --global nuget-manager
nuget-manager --help

For an existing installation, use dotnet tool update --global nuget-manager. This is a global tool, not an application PackageReference. The upstream repository publishes both the tool and a VS Code extension. Install the extension from the Marketplace or a released VSIX.

Inspect and Review

Run a read-only family check, then preview exact proposed edits:

nuget-manager check --path . --family Microsoft.Orleans --policy minor --json
nuget-manager update --path . --family Microsoft.Orleans --policy minor --dry-run --json

Microsoft.Orleans selects the exact ID and dot-boundary descendants, never Microsoft.OrleansExtra. Each package keeps its own available target version; selecting a family does not force a shared version or establish compatibility. Inspect every target version and owning file, including central declarations consumed by multiple projects.

Apply and Validate

After reviewing the preview, apply the same selection:

nuget-manager update --path . --family Microsoft.Orleans --policy minor --yes
git diff -- '*.csproj' '*.fsproj' '*.vbproj' 'Directory.Packages.props'
dotnet restore
dotnet build --no-restore
dotnet test --no-build

Use --yes only when writing that selection is authorized. Without it, update uses the interactive review. Run the repository's focused regressions after restore/build; keep unrelated tests parallel and respect the repository's test-output budget. The tool does not restore or test automatically. If a file changed since the review snapshot, refresh and review again before applying.

flowchart LR
  Check[Read declarations and listed feed versions] --> Preview[Dry-run exact family edits]
  Preview --> Review[Review versions and owning files]
  Review --> Apply[Validate snapshots and apply version edits]
  Apply --> Verify[Restore, build, focused regressions]

Options and Editor Workflow

  • --policy latest accepts any numerically newer version; minor stays within the current major; patch stays within the current major and minor. Version numbers do not prove API compatibility.
  • Stable versions are the default. Add --prerelease intentionally when preview versions are required.
  • --source https://api.nuget.org/v3/index.json adds a NuGet V3 feed. A failed configured feed remains an incomplete check; never interpret it as up to date.
  • Use --path to bound the workspace and --json for machine-readable output.
  • In VS Code, open NuGet: Open NuGet Package Manager for the sidebar or NuGet: Open NuGet Package Manager in Editor for the wide workbench. Choose Groups/List, select a family or declarations, review native diffs, and apply in a trusted workspace.
  • nugetPackageManager.autoCheck defaults to true. Automatic checks may reuse successful version lists for ten minutes; Check for Updates queries the feeds again. Existing unsaved document edits remain unsaved after version updates.

Constraints

  • Supported: literal PackageVersion entries in Directory.Packages.props, literal PackageReference versions, and explicit <Sdk Name="..." Version="..." /> declarations in C#, F#, and VB project files.
  • An existing Aspire.AppHost.Sdk declaration participates in the Aspire family. Versionless SDKs are unchanged; no SDK is added.
  • Property expressions, ranges, wildcards, invalid XML, and unsupported versions require manual handling. Project Sdk="Name/version", Import SDKs, and SDK versions in global.json are outside this tool's scope.
  • The manager does not add/remove package references, resolve dependency compatibility, implement NuGet.config source mapping, or authenticate to private feeds. Keep credentials out of source settings.
  • Conditional declarations remain independently selectable. Changing a central version affects every consuming project.

Deliver

Report the chosen family, policy and prerelease scope, reviewed files and versions, applied diff, and restore/build/regression results. Distinguish a failed feed check from a successful check with no updates.

Validate

  • Confirm installed help matches the commands before automation.
  • Confirm the dry-run leaves version files unchanged and the apply diff contains only reviewed literal versions.
  • Confirm stale reviews are refreshed and unsupported declarations remain explicit.
  • Confirm focused consumer regressions pass after restoring the changed versions.

Sources

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Use a repo-root `.editorconfig` to configure free .NET analyzer and style rules. Use when a .NET repo needs rule severity, code-style options, section layout, or analyzer ownership made explicit. USE FOR: the repo needs a root .editorconfig; analyzer severity and style ownership are unclear; the team wants one source of truth for rule configuration. DO NOT USE FOR: choosing analyzers with no config change; formatting-only execution with no config ownership question. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Scans .NET code for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I/O with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app crash from a tombstone, resolving native backtrace frames in libmonosgen-2.0.so or libcoreclr.so to .NET runtime source code, or investigating SIGABRT, SIGSEGV, or other native signals originating from the .NET runtime on Android. DO NOT USE FOR pure Java/Kotlin crashes, managed .NET exceptions that are already captured in logcat, or iOS crash logs. INVOKES Symbolicate-Tombstone.ps1 script, llvm-symbolizer, Microsoft symbol server.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Symbolicate .NET runtime frames in Apple platform .ips crash logs (iOS, tvOS, Mac Catalyst, macOS). Extracts UUIDs and addresses from the native backtrace, locates dSYM debug symbols, and runs atos to produce function names with source file and line numbers. Automatically downloads .dwarf symbols from the Microsoft symbol server using Mach-O UUIDs. USE FOR triaging a .NET MAUI or Mono app crash from an .ips file on any Apple platform, resolving native backtrace frames in libcoreclr or libmonosgen-2.0 to .NET runtime source code, retrieving .ips crash logs from a connected iOS device or iPhone, or investigating EXC_CRASH, EXC_BAD_ACCESS, SIGABRT, or SIGSEGV originating from the .NET runtime. DO NOT USE FOR pure Swift/Objective-C crashes with no .NET components, or Android tombstone files. INVOKES Symbolicate-Crash.ps1 script, atos, dwarfdump, idevicecrashreport.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

Design or review .NET solution architecture across modular monoliths, clean architecture, vertical slices, microservices, DDD, CQRS, and cloud-native boundaries without over-engineering. USE FOR: .NET architecture choices; layer and domain boundary review; service decomposition; clean architecture, vertical slice, DDD, CQRS, and modular monolith decisions. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.

日本語の概要は準備中です。原文の説明を表示しています。

managedcode/dotnet-skills4852026年10月11日 更新

managedcode のスキルをすべて見る

このスキルの問題を報告する