NetPrints.Catalog
0.2.0
dotnet add package NetPrints.Catalog --version 0.2.0
NuGet\Install-Package NetPrints.Catalog -Version 0.2.0
<PackageReference Include="NetPrints.Catalog" Version="0.2.0" />
<PackageVersion Include="NetPrints.Catalog" Version="0.2.0" />
<PackageReference Include="NetPrints.Catalog" />
paket add NetPrints.Catalog --version 0.2.0
#r "nuget: NetPrints.Catalog, 0.2.0"
#:package NetPrints.Catalog@0.2.0
#addin nuget:?package=NetPrints.Catalog&version=0.2.0
#tool nuget:?package=NetPrints.Catalog&version=0.2.0
NetPrints.Catalog
Type catalog engine and reader for the NetPrints node editor.
This package provides APIs for building, reading and loading type catalogs (*.npcat.json files). A type catalog describes the public surface of one or more assemblies: the types, their constructors, methods, properties and fields, the parameters and return types, and XML documentation summaries. A catalog describes an assembly's surface without loading it, and the NetPrints editor uses it in place of live enumeration for the assemblies it covers. Code that uses a library is still compiled against the real assembly, so the project must reference it.
Command-line tool
The netprints catalog command (part of NetPrints.Cli) builds catalogs from assemblies, NuGet packages or project references:
netprints catalog --assembly libs/MyLib.dll --output catalogs/mylib.npcat.json
netprints catalog --package Newtonsoft.Json@13.0.3 --exclude "*.Internal.*"
netprints catalog --assembly libs/MyLib.dll --format csharp --class-name MyLibCatalog --namespace MyCompany --output MyLibCatalog.g.cs
See the CLI guide for full documentation.
Loading catalogs
Use CatalogLoader to read catalogs from files or from assemblies that embed them:
// Load from a file
var catalog = CatalogLoader.LoadFile("mylib.npcat.json");
// Load embedded catalogs from a referenced assembly
var embedded = CatalogLoader.LoadEmbedded(typeof(MyClass).Assembly);
// Load from JSON string
var fromJson = CatalogLoader.LoadJson(jsonString);
Profiles
A profile controls which types and members a catalog includes:
public-api— every public type and member (the default).annotated— only types and members marked with[NetPrintsType]and[NetPrintsNode]fromNetPrints.Annotations.
Custom profiles are JSON files (.npprofile.json) that define inclusion and exclusion rules.
See also
- Type catalogs guide
- NetPrints.Annotations — embed catalogs in your assemblies
- NetPrints.Cli — command-line catalog builder
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 5.9.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- NetPrints.Reflection (>= 0.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0 | 0 | 10/1/2026 |