Pantheon.Discovery 1.0.3

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

Pantheon.Discovery

Assembly discovery and dependency ordering for Pantheon modules.

dotnet add package Pantheon.Discovery

Discover modules in one or more assemblies, sort them by their declared dependencies, and register them with a modular application:

using System.Reflection;
using Pantheon;
using Pantheon.Discovery;
using Microsoft.Extensions.DependencyInjection;

var application = new ModularApplication<MyApplication, MyApplicationBuilder>(builder);
application.AddModulesFromAssemblies([Assembly.GetExecutingAssembly()]);

By default, discovered modules need a public parameterless constructor. Pass a factory to create modules that require dependencies:

application.AddModulesFromAssemblies(
    [Assembly.GetExecutingAssembly()],
    moduleType => (IModule<MyApplication, MyApplicationBuilder>)ActivatorUtilities.CreateInstance(
        services,
        moduleType));

Configurable modules can provide a same-namespace <ModuleClassName>Configuration class implementing IModuleConfiguration<TFluentConfiguration>. Discovery creates that configuration class using its public parameterless constructor and applies it to the module's FluentConfiguration object. The convention class is looked up in the calling assembly, not the assembly containing the module. If no convention configuration class exists, the module's defaults are retained.

The stages are also available individually through ModuleDiscovery.DiscoverModules, ModuleDependencySorter.SortModules, and ModuleRegistration.RegisterModules. Package-detected discovery and dependency configuration failures throw PantheonPackageException from the Pantheon.Common package; inspect its Code property for stable identification. Exceptions thrown by user-provided module constructors, factories, or dependency properties are available as InnerException.

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
1.0.3 53 11/24/2026