dotnet-inspect

Analyze .NET APIs from NuGet packages, platform libraries, and local files.

619|188|Updated Jul 4, 2024
One-click install
npx skills add https://github.com/CommunityToolkit/Aspire --skill dotnet-inspect-communitytoolkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-inspect
Source: https://github.com/CommunityToolkit/Aspire/tree/main/.agents/skills/dotnet-inspect
Command: npx skills add https://github.com/CommunityToolkit/Aspire --skill dotnet-inspect-communitytoolkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dnx, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of exploring .NET APIs, enabling users to search for types, list API surfaces, compare versions, and find extension methods.

Core Features & Use Cases

  • Query NuGet Packages and Platform Libraries: Access .NET APIs across packages, platform libraries, and local files.
  • Compare Versions: Identify changes between different versions of a library.
  • Search and Inspection: Search for specific types, methods, and extension methods.

Quick Start

To list all members of the System.Text.Json library, you can run: dotnet-inspect -y member System.Text.Json --oneline

Frequently Asked Questions about dotnet-inspect

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

FAQPage Schema
How do I inspect .NET APIs from a NuGet package?

You can inspect .NET APIs from NuGet packages by running a command like `dotnet-inspect -y member System.Text.Json --oneline` to list all members of the library. It analyzes APIs across packages, platform libraries, and local files.

Can I compare API surface changes between different .NET library versions?

Yes, you can compare .NET library versions to identify API changes and differences. The tool inspects member modifications across different releases to help you track what changed between versions.

How do I find extension methods in .NET platform libraries?

You can search for specific types, methods, and extension methods in .NET platform libraries using the inspection commands. This allows you to discover available extension methods without manually browsing the source code.

Do I need the .NET runtime installed to use dotnet-inspect?

Yes, you need access to the .NET runtime and NuGet packages for execution. The tool requires the dnx dependency to analyze local files and query platform libraries effectively.

What is the best way to search for specific types in local .NET files?

The best way to search for specific types in local .NET files is using the API inspection commands to query local files directly. This enables rapid type discovery and member listing without compiling the project.