SimpleModule.Generator
0.0.33
dotnet add package SimpleModule.Generator --version 0.0.33
NuGet\Install-Package SimpleModule.Generator -Version 0.0.33
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.33" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleModule.Generator" Version="0.0.33" />
<PackageReference Include="SimpleModule.Generator" />
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.33
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleModule.Generator, 0.0.33"
#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.33
#: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.33
#tool nuget:?package=SimpleModule.Generator&version=0.0.33
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimpleModule.Generator
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
- View page registry mapping view endpoints to React components
Key Features
- Compile-time module discovery with zero runtime reflection
- Incremental generation via Roslyn IIncrementalGenerator
- Targets netstandard2.0 for broad analyzer compatibility
Links
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 | 23 | 4/23/2026 |
| 0.0.32 | 36 | 4/23/2026 |
| 0.0.30 | 123 | 4/1/2026 |
| 0.0.29 | 90 | 4/1/2026 |
| 0.0.28 | 85 | 4/1/2026 |
| 0.0.27 | 121 | 3/30/2026 |
| 0.0.26 | 87 | 3/30/2026 |
| 0.0.25 | 89 | 3/30/2026 |
| 0.0.24 | 87 | 3/30/2026 |
| 0.0.23 | 87 | 3/30/2026 |
| 0.0.22 | 91 | 3/30/2026 |
| 0.0.21 | 106 | 3/29/2026 |
| 0.0.20 | 91 | 3/29/2026 |
| 0.0.19 | 92 | 3/29/2026 |
| 0.0.18 | 117 | 3/28/2026 |
| 0.0.17 | 129 | 3/28/2026 |
| 0.0.16 | 141 | 3/28/2026 |
| 0.0.15 | 100 | 3/28/2026 |
| 0.0.14 | 98 | 3/28/2026 |
| 0.0.13 | 166 | 3/28/2026 |
Loading failed