Modularis.Compliance 0.2.0

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

Modularis

Modularis is a modern .NET runtime for reliable plugin lifecycles. It supports trusted in-process plugins with verified cooperative unloading and explicit data-only plugins in authenticated worker processes with a hard termination boundary. Its focus is dependency isolation, transactional updates, rollback, bounded execution, and actionable diagnostics—not merely loading a DLL.

The current unpublished development surface adds leak-safe application integration, verified local package management, desktop integration, and process-isolated execution to the certified foundation.

What the 1.0 foundation provides

  • One collectible load context and immutable staged package per plugin generation.
  • Explicit configure, initialize, state-import, start, health, drain, quiesce, stop, dispose, and unload states.
  • Typed contribution leases; the normal host API never returns an untracked raw plugin instance.
  • Atomic blue-green updates and stop-first updates with last-known-good rollback.
  • Bounded lease drain, lifecycle timeouts, cleanup aggregation, WeakReference unload verification, and quarantine.
  • A host-owned IPluginLifetime for named tasks, cleanup callbacks, and resources, with deterministic cleanup and immutable per-stage unload evidence.
  • Shared host contract identity with isolated private managed dependencies, native resolution diagnostics, and satellite resources.
  • Manifest compatibility gates, package/file hashes, publisher policies, and RSA-SHA256 signature policies.
  • Optional state migration, directory observation, host DI integration, approved facades, logs, activities, metrics, and a compliance kit.
  • Durable enable/disable/reconcile operations, immutable operational snapshots, recovery journals, health checks, and safe quarantine maintenance.
  • A plugin project template plus unload-safety diagnostics for common resource, task, static-event, static-state, and native-code hazards.

Unload is cooperative. Succeeded means the collectible context was observed as collected after a bounded unload request. Arbitrary plugin code can still retain itself through threads, statics, events, timers, native code, or host references; such a generation is reported as blocked and quarantined. AssemblyLoadContext is not a security sandbox.

Packages

  • Modularis.Abstractions — plugin lifecycle, registration, identity, health, and state contracts.
  • Modularis.Hosting — generations, leases, staging, dependency isolation, updates, trust, diagnostics, and unload verification.
  • Modularis.Json — bounded plugin.json parsing and directory discovery.
  • Modularis.Extensions.DependencyInjection — concise host registration and hosted start/stop/update observation.
  • Modularis.Compliance — repeatable package, activation, and verified-unload reports.
  • Modularis.Packaging — key generation, complete package hashing, atomic signing, and independent verification.
  • Modularis.Analyzers — build-only unload-safety diagnostics for plugin authors.
  • Modularis.Templates — the installable modularis-plugin project template.
  • Modularis.Tool — installable keygen, sign, and verify commands for build and deployment workflows.
  • Modularis.Worker — application-local worker for authenticated process-isolated plugin execution.

Minimal host

services.AddModularis(runtime => runtime
    .UsePluginDirectory("plugins")
    .RequirePlugin<IReportProvider>("reports.plugin")
    .EnableOperations()
    .EnableHotUpdates());

services.AddHealthChecks().AddModularis();

var application = services.GetRequiredService<IPluginApplication>();
var report = await application.InvokeAsync<IReportProvider, PluginReport, ReportRow>(
    "reports.plugin",
    "monthly",
    static (provider, token) => provider.CreateAsync(token),
    static pluginReport => ReportRow.Copy(pluginReport));

RequirePlugin<T> combines required selection and contract registration. AllowPlugin<T> is the optional equivalent. IPluginApplication is the normal application boundary: it scopes the lease and returns copied state/results. PluginRuntime remains available for advanced host infrastructure and is started and stopped automatically by a generic host. Local package management requires AddModularis, signed-package trust, and durable operations. See the application-integration and operations guides before exposing administrative actions.

Documentation

Verify locally

dotnet build Modularis.sln -c Release
dotnet test Modularis.sln -c Release --no-build
./eng/verify-clean-room.ps1
./eng/verify-interactive-web.ps1
./eng/verify-desktop.ps1
./eng/verify-desktop.ps1 -Mode Adversarial
./eng/verify-hybrid.ps1 -Mode All
./eng/verify-process-isolation.ps1 -Mode All
./eng/verify-signing-tool.ps1

The primary target is net10.0 on CoreCLR. See the platform matrix before choosing a UI, mobile, browser, trimming, AOT, or native-library scenario.

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.2.0 110 8/9/2026

See RELEASE_NOTES.md for current release notes.