Nullean.PublicApi
1.1.0
dotnet add package Nullean.PublicApi --version 1.1.0
NuGet\Install-Package Nullean.PublicApi -Version 1.1.0
<PackageReference Include="Nullean.PublicApi" Version="1.1.0" />
<PackageVersion Include="Nullean.PublicApi" Version="1.1.0" />
<PackageReference Include="Nullean.PublicApi" />
paket add Nullean.PublicApi --version 1.1.0
#r "nuget: Nullean.PublicApi, 1.1.0"
#:package Nullean.PublicApi@1.1.0
#addin nuget:?package=Nullean.PublicApi&version=1.1.0
#tool nuget:?package=Nullean.PublicApi&version=1.1.0
Nullean.PublicApi
Reads the public API of a .NET assembly from its metadata, without loading it, and writes it as a .api file: an
indented tree of namespaces, types and members, one C# declaration per line.
using Nullean.PublicApi;
var api = ApiReader.Read("bin/Release/net10.0/MyLib.dll");
File.WriteAllText("MyLib.api", ApiWriter.Write(api));
// and back: the same model, with the line each type and member is on
var document = ApiParser.Parse(File.ReadAllText("MyLib.api"));
assembly MyLib
using System: ObsoleteAttribute
using interface System: IComparable<>, IDisposable
namespace MyLib.Drawing
interface IShape : IDisposable
double Area { get; }
void Scale(double factor) { … }
sealed class Widget : Shape, IComparable<Widget>
Widget(string name, int size = 1)
required string? Name { get; init; }
[Obsolete("use Draw(Canvas)")]
void Draw()
The model holds what a declaration says: base types and interfaces, type parameter constraints and variance,
nullability, tuple element names, ref, out, in and params, default and constant values, required, init,
and the attributes that are about the API rather than the compiler's bookkeeping. Everything in the file is visible from outside, so public goes without saying and only protected is written.
The header names every type from another assembly the API uses, namespace by namespace, so declarations use short
names; a name two namespaces share is written in full. using struct lists the value types, so DateTime? reads back
as a nullable value type and string? as an annotated reference, and using interface the interfaces a base list
names, so a reader can tell a base class from an interface without the other assembly. ApiParser reads the file back
into the same model the reader produced from the assembly.
Targets netstandard2.0 and net10.0. It is the reader behind assembly-differ.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Collections.Immutable (>= 11.0.0)
- System.Memory (>= 4.6.3)
- System.Reflection.Metadata (>= 11.0.0)
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nullean.PublicApi:
| Package | Downloads |
|---|---|
|
Nullean.PublicApi.Diff
Compares the public API of two versions of .NET assemblies: what was added, removed or changed, the version bump semantic versioning calls for, and which changes affect code that uses them. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 0 | 11/14/2026 |