dotnet-inspect
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedotnet-inspect
dotnet-inspect
Use dotnet-inspect for evidence instead of guesses about .NET packages,
platform libraries, assemblies, APIs, dependencies, or API version diffs.
bash
dnx dotnet-inspect -y -- <command>-y----helpdnx无需猜测,使用dotnet-inspect获取关于.NET包、平台库、程序集、API、依赖项或API版本差异的可靠依据。
bash
dnx dotnet-inspect -y -- <command>-y----helpdnxCommon starts
常用起始命令
| Goal | Command |
|---|---|
| Find an API | |
| Inspect a type | |
| Inspect overloads | |
| Select an overload | |
| Compare APIs | |
| Trace API evolution | |
| Inspect packages | |
| Inspect libraries | |
| Relationships | |
| 目标 | 命令 |
|---|---|
| 查找API | |
| 检查类型 | |
| 检查重载 | |
| 选择重载 | |
| 对比API | |
| 追踪API演进 | |
| 检查包 | |
| 检查库 | |
| 关系查询 | |
Member lookup
成员查找
Run when scope is unknown, inspect the type, then to list
overloads. Select with (1-based) or (stable). A selected overload
defaults to . A fully-qualified needs no scope.
find Name-S "Member Index"Name:NName~digestSignatureNamespace.Type.Memberbash
dnx dotnet-inspect -y -- find JsonSerializer
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json -m Serialize -S "Member Index"
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json Serialize:1 -S Signature
dnx dotnet-inspect -y -- member System.Text.Json.JsonSerializer.Serialize -S "Member Index"当范围未知时,运行 ,检查类型后,使用 列出重载。通过 (从1开始计数)或 (稳定标识)选择重载。选中的重载默认显示 。完全限定的 无需指定范围。
find Name-S "Member Index"Name:NName~digestSignatureNamespace.Type.Memberbash
dnx dotnet-inspect -y -- find JsonSerializer
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json -m Serialize -S "Member Index"
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json Serialize:1 -S Signature
dnx dotnet-inspect -y -- member System.Text.Json.JsonSerializer.Serialize -S "Member Index"Tips
提示
- Default output is Markdown; for formats, /
-Ddiscovery, projection, and limits, load-S. Decompiled source uses readable synthesized local names when PDB names are unavailable.dotnet-inspect skill query - Add when project-referenced packages should be in scope; it reads existing restored assets, so restore/build first if dependencies changed.
--project <csproj|dir|project.assets.json> - Common BCL types resolve without scope: ,
type string. Quote generics and patterns:type 'List<T>',member 'Dictionary<TKey,TValue>'.-S "Async*" - Unpinned packages use latest stable; add for prerelease APIs.
--preview
- 默认输出格式为Markdown;如需其他格式,可加载 来使用
dotnet-inspect skill query/-D进行发现、投影和限制。当PDB名称不可用时,反编译的源码会使用易读的合成局部变量名。-S - 若要将项目引用的包纳入范围,添加 参数;该参数会读取已还原的现有资产,因此如果依赖项发生变更,请先执行还原/构建操作。
--project <csproj|dir|project.assets.json> - 常见的BCL类型无需指定范围即可解析:、
type string。泛型和模式需要加引号:type 'List<T>'、member 'Dictionary<TKey,TValue>'。-S "Async*" - 未固定版本的包会使用最新稳定版;添加 参数可查看预发布API。
--preview