Lyo.PackageMetadata 1.0.1

dotnet add package Lyo.PackageMetadata --version 1.0.1
                    
NuGet\Install-Package Lyo.PackageMetadata -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lyo.PackageMetadata" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.PackageMetadata" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.PackageMetadata" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.PackageMetadata --version 1.0.1
                    
#r "nuget: Lyo.PackageMetadata, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lyo.PackageMetadata@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.PackageMetadata&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.PackageMetadata&version=1.0.1
                    
Install as a Cake Tool

Lyo.PackageMetadata

Multi-ecosystem PackageMetadata rows, PackageMetadataRegistration, IPackageMetadataStore, and PackageArtifactDigest helpers for correlating stack-trace namespaces with persisted package/catalog data.

Public surface

  • PackageMetadatasealed record carrying ecosystem, name/version, optional ArtifactDigestAlgorithm/ArtifactDigestHex, project/repository/license URLs, SPDX LicenseExpression (+ parsed LicenseExpressionSyntax), CreatedAt/UpdatedAt timestamps.
  • PackageEcosystem enum — Unknown, NuGet, Maven, Gradle, Conan, Vcpkg, Debian, Rpm, Msi, Other.
  • ArtifactDigestAlgorithm enum — None, Sha512, Sha256, Sha1.
  • PackageMetadataRegistration — pair of namespace prefixes and the PackageMetadata to register.
  • IPackageMetadataStoreTryGetForFrameAsync, TryGetManyForStrippedMethodPrefixesAsync, RegisterManyAsync.
  • InMemoryPackageMetadataStore — thread-safe store; build with new InMemoryPackageMetadataStore(), then call Register(prefixes, package) or RegisterManyAsync(registrations). No DI extension ships in this package (a Postgres-backed store with its own DI extensions lives in Lyo.PackageMetadata.Postgres).
  • PackageArtifactDigestComputeHex(algorithm, byte[]|Stream) and ComputeHexSha512(...) convenience overloads for canonical artifact bytes.
  • PackageLicenseExpressionTryParseSyntax(expression) and TryGetSpdxLicenseIdentifiers(expression) over SPDX 2.x (AND, OR, WITH).
  • SpdxLicenseExpressionSyntax — JSON-friendly parsed tree (license, exception, and, or, with).

Implementing IPackageMetadataStore

  • Honour longest registered namespace-prefix wins (normalizedPrefix. + strippedMethodPrefix.StartsWith(prefix, Ordinal)) for TryGetForFrameAsync and * *TryGetManyForStrippedMethodPrefixesAsync**.
  • Return a map from TryGetManyForStrippedMethodPrefixesAsync that includes one entry per distinct requested key, with null when no prefix matches. Empty input ⇒ empty map.

namespacePrefix parameter

Both lookup methods expose a namespacePrefix argument (frame namespace). Matching currently ignores this value — it is reserved for possible future narrowing. Passing any value does not affect results today.

PostgresPackageMetadataStore scalability

  • PostgresPackageMetadataOptions.PrefixCatalogCaching (see PostgresPrefixCatalogCachingMode) can skip re-querying the database on repeated TryGetMany ( InvalidateOnRegisterManyOrClear) or Disabled when you wrap the store with your own cache. PostgresPackageMetadataStore.ClearPrefixCatalogCache() drops the in-process snapshot. The cache is per process. After RegisterManyAsync on that instance the snapshot is cleared. Other DB writers won't invalidate automatically — disable in-process caching or clear explicitly when imports finish off-process.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Common — (direct, lyo)
  • Lyo.Exceptions — (direct, lyo)
  • Lyo.Hashing — (direct, lyo)
  • System.Threading.Tasks.Extensions 4.6.3 — (direct, microsoft)
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Logging.Abstractions 10.0.5 — (transitive, microsoft)
  • System.IO.Hashing 10.0.5 — (transitive, microsoft, net10.0)
  • System.Memory 4.6.3 — (transitive, microsoft, netstandard2.0)
  • System.Text.Json 10.0.5 — (transitive, microsoft, netstandard2.0)
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Lyo.PackageMetadata:

Package Downloads
Lyo.Diagnostic

Diagnostic utilities for classifying exceptions, decoding and sanitising stack traces, and enriching structured logs for observability.

Lyo.PackageMetadata.Postgres

PostgreSQL implementation of IPackageMetadataStore for NuGet-style package rows and stack-frame namespace prefixes.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 48 8/18/2026
1.0.0 390 8/16/2026