Modulight.Modules.Core 0.0.7-preview.8

.NET 5.0
This is a prerelease version of Modulight.Modules.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Modulight.Modules.Core --version 0.0.7-preview.8
NuGet\Install-Package Modulight.Modules.Core -Version 0.0.7-preview.8
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="Modulight.Modules.Core" Version="0.0.7-preview.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Modulight.Modules.Core --version 0.0.7-preview.8
#r "nuget: Modulight.Modules.Core, 0.0.7-preview.8"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Modulight.Modules.Core as a Cake Addin
#addin nuget:?package=Modulight.Modules.Core&version=0.0.7-preview.8&prerelease

// Install Modulight.Modules.Core as a Cake Tool
#tool nuget:?package=Modulight.Modules.Core&version=0.0.7-preview.8&prerelease


Modulight is a light modular framework aimed to be low intrusive based on dependency injection for .NET 5, ASP.NET Core and Blazor.

Use modules

  1. Register modules.

For general modules:

services.AddModules(builder => {
  1. Configure the module initilizing & shutdown.
var host = services.GetModuleHost();
await host.Initialize();

// do something

await host.Shutdown();

// Or use context:

// context: IServiceProvider services (provided by package Modulight.Modules.Core)
await using var _ = await services.UseModuleHost();

// do something

Or use extension methods for hosting:

// ASP.NET hosting. (provided by package Modulight.Modules.Server.AspNet)
// in Program: Task Main(string[] args)
await CreateHostBuilder(args).Build().RunAsyncWithModules();

// WebAssembly hosting. (provided by package Modulight.Modules.Client.RazorComponents)
// in Program: Task Main(string[] args)
await builder.Build().RunAsyncWithModules();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Modulight.Modules.Core:

Package Downloads

Basic types for razor component client modules in Modulight modular framework.


Basic types for AspNet server modules in Modulight modular framework.


Basic types for GraphQL server modules in Modulight modular framework.


Basic types for command line modules in Modulight modular framework.


Hosting for Modulight modular framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.7 3,550 5/31/2021
0.0.7-preview.8 235 5/30/2021
0.0.6 872 5/30/2021
0.0.5 1,045 4/3/2021
0.0.5-preview.18 98 3/14/2021
0.0.5-preview.13 199 3/12/2021
0.0.5-preview.12 121 3/12/2021
0.0.5-preview.11 121 3/10/2021
0.0.5-preview.10 142 3/10/2021
0.0.5-preview.4 128 3/4/2021
0.0.5-preview.2 145 3/4/2021
0.0.4 934 3/4/2021
0.0.4-preview.40 181 2/22/2021
0.0.4-preview.30 252 2/21/2021
0.0.4-preview.28 136 2/20/2021
0.0.4-preview.25 254 2/20/2021
0.0.4-preview.6 138 2/6/2021
0.0.3 412 2/5/2021
0.0.3-preview.39 118 2/3/2021
0.0.3-preview.38 110 2/1/2021
0.0.3-preview.37 124 1/31/2021
0.0.2 431 1/29/2021
0.0.2-preview.36 175 1/17/2021
0.0.2-preview.34 135 1/16/2021
0.0.1-preview.30 131 1/13/2021
0.0.1-preview.29 145 1/13/2021
0.0.1-preview.28 119 1/12/2021
0.0.1-preview.25 121 1/11/2021