Pocok.AppDefaults.Modularity
0.2.0-alpha.7
Prefix Reserved
dotnet add package Pocok.AppDefaults.Modularity --version 0.2.0-alpha.7
NuGet\Install-Package Pocok.AppDefaults.Modularity -Version 0.2.0-alpha.7
<PackageReference Include="Pocok.AppDefaults.Modularity" Version="0.2.0-alpha.7" />
<PackageVersion Include="Pocok.AppDefaults.Modularity" Version="0.2.0-alpha.7" />
<PackageReference Include="Pocok.AppDefaults.Modularity" />
paket add Pocok.AppDefaults.Modularity --version 0.2.0-alpha.7
#r "nuget: Pocok.AppDefaults.Modularity, 0.2.0-alpha.7"
#:package Pocok.AppDefaults.Modularity@0.2.0-alpha.7
#addin nuget:?package=Pocok.AppDefaults.Modularity&version=0.2.0-alpha.7&prerelease
#tool nuget:?package=Pocok.AppDefaults.Modularity&version=0.2.0-alpha.7&prerelease
Pocok.AppDefaults.Modularity
Pocok.AppDefaults.Modularity is the opinionated application-policy layer over Pocok.Modularity.
var builder = Host.CreateApplicationBuilder(args);
builder.AddPocokModularityDefaults(
configureDefaults: defaults =>
{
defaults.SharedAssemblyNames.Add(typeof(IDeviceCommunicator).Assembly.GetName().Name!);
});
By default it searches <content-root>/plugins recursively, treats the directory as optional, and allows optional
plugin failures to remain diagnostic rather than fatal. The policy can be configured under Pocok:Modularity or through
the delegate. The resolved startup policy is available through IOptions<ModularityDefaultsOptions>.
The second delegate exposes the underlying ModuleLoadOptions for application contract sharing and exceptional cases.
The package does not alter the loader's startup-only and trusted-code boundaries. Applying the configurator more than
once to the same builder throws InvalidOperationException so conflicting plugin policies cannot be silently ignored.
This package remains non-releasable until the underlying Modularity integration matrix passes on Linux and Windows.
| 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
- Microsoft.Extensions.Configuration.Binder (>= 10.0.10)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Options (>= 10.0.10)
- Pocok.AppDefaults (>= 0.2.0-alpha.7)
- Pocok.Modularity (>= 0.2.0-alpha.7)
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-alpha.7 | 49 | 7/20/2026 |