SimpleModule.Generator 0.0.22

There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleModule.Generator --version 0.0.22
                    
NuGet\Install-Package SimpleModule.Generator -Version 0.0.22
                    
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="SimpleModule.Generator" Version="0.0.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleModule.Generator" Version="0.0.22" />
                    
Directory.Packages.props
<PackageReference Include="SimpleModule.Generator" />
                    
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 SimpleModule.Generator --version 0.0.22
                    
#r "nuget: SimpleModule.Generator, 0.0.22"
                    
#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 SimpleModule.Generator@0.0.22
                    
#: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=SimpleModule.Generator&version=0.0.22
                    
Install as a Cake Addin
#tool nuget:?package=SimpleModule.Generator&version=0.0.22
                    
Install as a Cake Tool

SimpleModule.Generator

NuGet

Roslyn source generator that auto-discovers modules, endpoints, and DTOs at compile time.

Installation

dotnet add package SimpleModule.Generator

Quick Start

The generator runs automatically at build time. Reference it in your host project and call the generated extension methods:

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddModules(); // Generated method

var app = builder.Build();
app.MapModuleEndpoints(); // Generated method

What It Generates

  • AddModules() -- registers all discovered module services
  • MapModuleEndpoints() -- maps all IEndpoint implementations
  • CollectModuleMenuItems() -- gathers menu registrations from all modules
  • JSON serializer contexts for all [Dto] types
  • TypeScript interface definitions embedded as resources
  • Razor component assembly discovery for Blazor SSR

Key Features

  • Compile-time module discovery with zero runtime reflection
  • Incremental generation via Roslyn IIncrementalGenerator
  • Targets netstandard2.0 for broad analyzer compatibility
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0.33 42 4/23/2026
0.0.32 44 4/23/2026
0.0.30 124 4/1/2026
0.0.29 91 4/1/2026
0.0.28 87 4/1/2026
0.0.27 122 3/30/2026
0.0.26 88 3/30/2026
0.0.25 90 3/30/2026
0.0.24 88 3/30/2026
0.0.23 88 3/30/2026
0.0.22 92 3/30/2026
0.0.21 107 3/29/2026
0.0.20 92 3/29/2026
0.0.19 93 3/29/2026
0.0.18 118 3/28/2026
0.0.17 130 3/28/2026
0.0.16 142 3/28/2026
0.0.15 101 3/28/2026
0.0.14 99 3/28/2026
0.0.13 168 3/28/2026
Loading failed