Temelie.SourceGenerator
1.0.205
See the version list below for details.
dotnet add package Temelie.SourceGenerator --version 1.0.205
NuGet\Install-Package Temelie.SourceGenerator -Version 1.0.205
<PackageReference Include="Temelie.SourceGenerator" Version="1.0.205" />
<PackageVersion Include="Temelie.SourceGenerator" Version="1.0.205" />
<PackageReference Include="Temelie.SourceGenerator" />
paket add Temelie.SourceGenerator --version 1.0.205
#r "nuget: Temelie.SourceGenerator, 1.0.205"
#:package Temelie.SourceGenerator@1.0.205
#addin nuget:?package=Temelie.SourceGenerator&version=1.0.205
#tool nuget:?package=Temelie.SourceGenerator&version=1.0.205
Temelie.SourceGenerator
Runs the Temelie generators outside the compiler and writes their output to disk. It opens a solution with Roslyn's MSBuildWorkspace, generates the code, and keeps a folder of .cs files in sync. Use it when you want generated code checked in, reviewed in pull requests, or available without building.
dotnet add package Temelie.SourceGenerator
var generator = new FileGenerator();
await generator.GenerateEntitiesAsync("MyApp.sln", "MyApp.Database", "MyApp.Entities"); // entities from .sql.json
await generator.GenerateEntityFrameworkCoreAsync("MyApp.sln", "MyApp.Entities", "MyApp.Data", "_Generated/EntityFrameworkCore");
await generator.GenerateRepositoryAsync("MyApp.sln", "MyApp.Entities", "MyApp.Data", "_Generated/Repository");
Each method has three variants:
- Solution path: pass the path to the solution, as shown above.
- Open workspace: pass an already-open
MSBuildWorkspaceto share one solution load across calls. - Custom entity generator: pass your own
EntityIncrementalGeneratorBase(see Temelie.Entities.SourceGeneratorBase).
Output defaults to a _Generated folder in the target project. Changed files are rewritten and stale files are deleted.
src/Temelie.SourceGenerator.App in the repository is a runnable example that generates the AdventureWorks sample.
| Product | Versions 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. |
-
net10.0
- Microsoft.Build.Locator (>= 1.11.2)
- Microsoft.CodeAnalysis.CSharp.Features (>= 5.9.0)
- Microsoft.CodeAnalysis.CSharp.Workspaces (>= 5.9.0)
- Microsoft.CodeAnalysis.VisualBasic.Features (>= 5.9.0)
- Microsoft.CodeAnalysis.VisualBasic.Workspaces (>= 5.9.0)
- Microsoft.CodeAnalysis.Workspaces.MSBuild (>= 5.9.0)
- Microsoft.Extensions.Configuration (>= 10.0.14)
- Temelie.Database.Models (>= 1.0.205)
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.207 | 34 | 11/7/2026 |
| 1.0.206 | 32 | 11/7/2026 |
| 1.0.205 | 27 | 11/7/2026 |
| 1.0.204 | 33 | 11/7/2026 |
| 1.0.202 | 5,963 | 10/13/2026 |
| 1.0.201 | 7,300 | 8/28/2026 |
| 1.0.200 | 198 | 8/26/2026 |
| 1.0.199 | 105 | 8/21/2026 |
| 1.0.196 | 63 | 8/21/2026 |
| 1.0.195 | 61 | 8/21/2026 |
| 1.0.194 | 1,987 | 8/19/2026 |
| 1.0.193 | 59 | 8/12/2026 |
| 1.0.192 | 23,138 | 7/21/2026 |
| 1.0.191 | 4,136 | 7/13/2026 |
| 1.0.190 | 1,020 | 7/9/2026 |
| 1.0.189 | 23,580 | 2/18/2026 |
| 1.0.188 | 72 | 2/13/2026 |
| 1.0.187 | 120 | 11/21/2025 |
| 1.0.186 | 4,763 | 11/20/2025 |
| 1.0.185 | 117 | 11/20/2025 |