LevelUp.Strategos.Generators
4.0.0
dotnet add package LevelUp.Strategos.Generators --version 4.0.0
NuGet\Install-Package LevelUp.Strategos.Generators -Version 4.0.0
<PackageReference Include="LevelUp.Strategos.Generators" Version="4.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="LevelUp.Strategos.Generators" Version="4.0.0" />
<PackageReference Include="LevelUp.Strategos.Generators"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add LevelUp.Strategos.Generators --version 4.0.0
#r "nuget: LevelUp.Strategos.Generators, 4.0.0"
#:package LevelUp.Strategos.Generators@4.0.0
#addin nuget:?package=LevelUp.Strategos.Generators&version=4.0.0
#tool nuget:?package=LevelUp.Strategos.Generators&version=4.0.0
Strategos.Generators
Roslyn source generators for Strategos. They lower a fluent workflow definition into a Wolverine saga, Marten persistence and the dependency-injection registrations, at build time.
The package is a build-time dependency. It adds no assembly to the output of an application.
What the generators emit
From one Workflow<TState>.Create(...) definition, the generators emit:
- the Wolverine saga that runs the workflow,
- the phase enum, the start command and the step events,
- the worker handlers for each step,
- the
Add{Name}Workflow()extension that registers all of them.
A .workflow.json file passed as an AdditionalFiles item enters the same lowering path.
Service declarations
Mark a static Define(ServiceBuilder service) method with [Service("service-key")]. You can also include a portable .service.json file. Both inputs produce the same graph digest for the same definition.
Set StrategosServiceRole to Coordinator, Dispatcher, or Worker in the host project. The generator emits that role's manifest, requirements, and job catalog. If you omit the role, the generator emits the graph digest.
<PropertyGroup>
<StrategosServiceRole>Worker</StrategosServiceRole>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="exports.service.json" />
</ItemGroup>
Read the emitted artifacts with Strategos.Generated.ServiceCatalog.For("service-key") in the host assembly. Include imported service modules as AdditionalFiles with a StrategosServiceModuleVersion value. Declare their versions and digests in the service definition.
Run service builds with the .NET 10 SDK. Named IANA time zones use the time-zone data available to the compiler host.
Installation
Add the package. Set PrivateAssets so it does not flow to consumers.
dotnet add package LevelUp.Strategos.Generators
<PackageReference Include="LevelUp.Strategos.Generators" Version="3.0.0"
PrivateAssets="all" />
Compile-time validation
An invalid workflow fails the build. It does not fail at run time. Each failure has a stable AGWF identifier that names the construct and its position.
The catalog holds 43 codes. Some identifiers are gaps, and the gaps stay gaps: an identifier is never reused for a different meaning.
Some codes cannot be suppressed. <NoWarn>, .editorconfig severities and #pragma warning disable do not silence them. A proof that a workflow refuses is not a style preference.
Read the AGWF reference for each code, its cause and its remedy.
Related packages
LevelUp.Strategos— the workflow DSL these generators read.LevelUp.Strategos.Ontology.Generators— the analyzers for ontology declarations.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LevelUp.Strategos.Generators:
| Package | Downloads |
|---|---|
|
LevelUp.Bifrost
Typed service authoring, generated roles, and local execution. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 40 | 12/5/2026 |
| 3.0.0 | 422 | 9/11/2026 |
| 3.0.0-rc.1 | 105 | 9/10/2026 |
| 2.10.0 | 294 | 8/7/2026 |
| 2.9.1 | 1,479 | 6/23/2026 |
| 2.9.0 | 221 | 6/19/2026 |
| 2.8.0 | 456 | 5/25/2026 |
| 2.7.0 | 158 | 5/24/2026 |
| 2.6.0 | 145 | 5/17/2026 |
| 2.5.0 | 142 | 5/16/2026 |
| 2.4.2 | 194 | 4/13/2026 |
| 2.4.1 | 222 | 4/10/2026 |
| 2.4.0 | 148 | 4/7/2026 |
| 2.3.0 | 177 | 4/5/2026 |
| 2.2.1 | 154 | 3/15/2026 |
| 2.2.0 | 200 | 3/3/2026 |