Spdx.Compliance 0.3.0

dotnet add package Spdx.Compliance --version 0.3.0
                    
NuGet\Install-Package Spdx.Compliance -Version 0.3.0
                    
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="Spdx.Compliance" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spdx.Compliance" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Spdx.Compliance" />
                    
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 Spdx.Compliance --version 0.3.0
                    
#r "nuget: Spdx.Compliance, 0.3.0"
                    
#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 Spdx.Compliance@0.3.0
                    
#: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=Spdx.Compliance&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Spdx.Compliance&version=0.3.0
                    
Install as a Cake Tool

Spdx.Compliance

Spdx.Compliance on NuGet

Spdx.Compliance is an offline .NET 10 library for evaluating SPDX license fields and CycloneDX 1.6 component occurrences against a caller-supplied distribution policy.

dotnet add package Spdx.Compliance --version 0.3.0
  • Load a schema 1 or 2 JSON policy with CompliancePolicy.Load. Schema 2 supports optional SPDX term aliases, category rules, license preferences, profile overrides, global prohibitions, multiple notices and CycloneDX conclusion verification. An optional correction catalog must match the SHA-256 recorded in that policy.
  • Call ComplianceEngine.Evaluate for one field, with optional SPDX document scope, recorded choices for independent and nested ORs, and delivery evidence. Read RegistryIdentity on the evaluation to record its embedded SPDX catalogue.
  • Call ComplianceEngine.EvaluateParsed to reuse a successfully parsed expression under the policy's expression limits, or OrSelectionSet.ApplySelections to inspect and format the residual expression from a batch of choices without loading a policy.
  • Call ComplianceEngine.CompareConclusion for structural comparison of two original expressions, or ComplianceEngine.EvaluateConclusion to audit the relationship and inspect the hypothetical replay. Opt in to accepting a unique inferred choice.
  • Call ComplianceEngine.AnalyzeAlternatives or AnalyzeParsedAlternatives to inspect available routes and request a verified choice batch. Single-ID recommendations use the policy ranking or an in-memory override and apply to one prospective declaration. A combined assessment can still block advice for that occurrence.
  • Call GetCategoryAnalysis() on an alternative analysis to inspect all term occurrences and summarize possible and required categories across structural or fully allowed routes.
  • Call GetReviewConcerns() on the same analysis to report remaining classified terms by category, exception pair or mixed alternative. Groups include original UTF-16 spans and retain native findings and alias evidence. Check completion status before using the groups. A complete result with zero groups can accompany a denial.
  • Call CycloneDxComplianceAnalyzer.Analyze for a CycloneDX 1.6 JSON stream. Inspect each occurrence's decision, declared and observed licenses, and independent correction finding.
  • Call CycloneDxComplianceAnalyzer.AnalyzeDetailed for per-field JSON Pointers, source-bound replay and scan coverage. Choose how to interpret recorded conclusions independently of extending presence checks beyond the eligible pair. A mandatory denial in the compared declaration takes precedence over disagreement. Both causes remain visible. Read SourceKey on either report's evaluation for the JSON Pointer of its decoded source text.
  • Call CompliancePolicy.VerifyCorrection to check a correction against the pinned catalog and trusted occurrence identity supplied by your application. Schema 2 supports exact identity tuples with optional version ranges and marker-free catalogs for direct checks of non-NuGet rules.
  • Call GetActionSummary() on a policy evaluation to see current choices and evidence checks, plus branch conditions for eligible routes. Shared notice actions retain each originating occurrence and its applicable choices.
  • Call ComplianceAggregator to select and group evaluations or CycloneDX occurrences by policy and outcome. Use ConclusionEvaluation.ToOccurrence to include a conclusion's effective result and full comparison evidence. The summary retains current and contingent actions, occurrence provenance, exclusions and coverage.

A verified correction confirms the assertion matches the pinned rule. Distribution depends on the applicable policy rules and evidence. A complete document report describes the evaluated occurrences and does not issue a release approval.

Version 0.3.0 declares dependencies on Spdx.Expressions 1.2.0 and NuGet.Versioning 8.0.0. The application supplies all policy data and evidence. Evaluation performs no network or filesystem access.

See the policy schema, migration guide and runnable examples. Track distribution and artifact checksums on NuGet and the tagged release.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3.0 60 12/3/2026
0.2.0 57 12/3/2026
0.1.0 94 11/25/2026

Adds GetReviewConcerns for source-linked category, exception and mixed-alternative concerns after choice binding and local route pruning. Reports typed projection gaps and preserves existing decision, route and category contracts.