Temelie.SourceGenerator
1.0.207
dotnet add package Temelie.SourceGenerator --version 1.0.207
NuGet\Install-Package Temelie.SourceGenerator -Version 1.0.207
<PackageReference Include="Temelie.SourceGenerator" Version="1.0.207" />
<PackageVersion Include="Temelie.SourceGenerator" Version="1.0.207" />
<PackageReference Include="Temelie.SourceGenerator" />
paket add Temelie.SourceGenerator --version 1.0.207
#r "nuget: Temelie.SourceGenerator, 1.0.207"
#:package Temelie.SourceGenerator@1.0.207
#addin nuget:?package=Temelie.SourceGenerator&version=1.0.207
#tool nuget:?package=Temelie.SourceGenerator&version=1.0.207
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.207)
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 | 31 | 2026/11/7 |
| 1.0.206 | 30 | 2026/11/7 |
| 1.0.205 | 25 | 2026/11/7 |
| 1.0.204 | 31 | 2026/11/7 |
| 1.0.202 | 3,667 | 2026/10/13 |
| 1.0.201 | 7,268 | 2026/8/28 |
| 1.0.200 | 198 | 2026/8/26 |
| 1.0.199 | 102 | 2026/8/21 |
| 1.0.196 | 61 | 2026/8/21 |
| 1.0.195 | 61 | 2026/8/21 |
| 1.0.194 | 1,987 | 2026/8/19 |
| 1.0.193 | 59 | 2026/8/12 |
| 1.0.192 | 21,463 | 2026/7/21 |
| 1.0.191 | 4,135 | 2026/7/13 |
| 1.0.190 | 1,020 | 2026/7/9 |
| 1.0.189 | 23,578 | 2026/2/18 |
| 1.0.188 | 72 | 2026/2/13 |
| 1.0.187 | 120 | 2025/11/21 |
| 1.0.186 | 4,763 | 2025/11/20 |
| 1.0.185 | 115 | 2025/11/20 |