TKWF.CodeGeneration
4.10.13
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TKWF.CodeGeneration --version 4.10.13
NuGet\Install-Package TKWF.CodeGeneration -Version 4.10.13
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="TKWF.CodeGeneration" Version="4.10.13"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TKWF.CodeGeneration" Version="4.10.13" />
<PackageReference Include="TKWF.CodeGeneration"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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 TKWF.CodeGeneration --version 4.10.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TKWF.CodeGeneration, 4.10.13"
#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 TKWF.CodeGeneration@4.10.13
#: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=TKWF.CodeGeneration&version=4.10.13
#tool nuget:?package=TKWF.CodeGeneration&version=4.10.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TKWF.Framework — 龙爸出品
领域级 .NET 支撑框架,提供统一的领域驱动基础设施、代码生成器、跨平台客户端支持。
当前版本:4.10.0(目标框架:.NET 10 / .NET 9 / .NET Standard 2.0)
目录结构
_Framework/ 核心框架
├── Core/ 内核(AOP、后台作业接口、事件总线抽象)
├── Domain/ 领域驱动设计抽象(实体、值对象、领域服务、仓储接口)
├── Abstractions/ 纯抽象层(接口、枚举、属性、POCO,netstandard2.0)
├── Utility/ 工具库(含 Metrics 计算内核、Tags 标签算法)
├── BackgroundJobs/ 后台作业默认实现(DefaultBackgroundJobManager + JobRecord)
├── BackgroundJobs.Hangfire/ 后台作业 Hangfire Provider(可选对接,LGPLv3)
├── BackgroundJobs.Quartz/ 后台作业 Quartz Provider(可选对接)
├── EventBus.RabbitMQ/ 分布式事件总线传输(RabbitMQ)
└── Outbox/ 事务性 Outbox/Inbox worker
_Domain.Api/ API 客户端
├── ApiClient/ HTTP 客户端基座(GraphQL 已合并入此)
└── ApiClient.Rest/ RESTful 客户端实现
_Domain.ApiService/ 服务端 API 实现
├── Hosting/ 宿主集成
├── MinimalApi/ Minimal API 集成
└── HotChocolate/ GraphQL (HotChocolate) 集成
_Domain.SG/ 源代码生成器
├── ApiService.SG/ 服务端源代码生成器
├── ApiClient.SG/ 客户端源代码生成器
├── CodeGeneration.Abstractions/ 代码生成抽象
└── CodeGeneration/ 通用代码生成器
_Domain.Infrastructure/ 基础设施实现
├── Web/ ASP.NET Core 中间件/过滤器
├── Blazor.Abstractions/ Blazor 抽象
├── Blazor.Server/ Blazor Server 组件
├── Blazor.Wasm/ Blazor WebAssembly 组件
├── FreeSql/ FreeSql ORM 集成
├── EFCore/ EF Core 适配
└── Maui/ .NET MAUI 支持
_Domain.Testing/ 测试工具
├── xUnit/ xUnit 测试基类与扩展
└── Mock/ Mock 基础设施
_xCodeGen/ CLI 代码生成工具
├── xCodeGen.Core/ 生成引擎
└── xCodeGen.Cli/ 命令行入口 + 模板 + 脚手架
_Tests/ 测试项目(9 个,见 PROJECT_STRUCTURE.md)
docs/ 框架文档(含 03_扩展模块/ 扩展跟踪、02-迭代开发/ ADR)
完整项目结构、扩展模块总览与迁出历史见 PROJECT_STRUCTURE.md。扩展模块(
TKWF.Ext.*)在独立仓库 LoongBa/_TKWF.Extensions。
快速开始
<PackageReference Include="TKWF.Domain" Version="4.6.5" />
已知注意事项
TKWF.BackgroundJobs.Hangfire(V4.9.104):Hangfire.Core 1.8.18 传递依赖Newtonsoft.Json。已通过 CPM 钉选Newtonsoft.Json 13.0.4缓解已知高危漏洞(NU1903 警告已消除)。Provider 为可选对接(默认进程内实现无此依赖)。
构建要求
- .NET SDK 10.0+
- Visual Studio 2022+ / Rider
dotnet restore TKW.Framework.slnx
dotnet build TKW.Framework.slnx -c Release
许可证
闭源 · 商业源码授权——Copyright © 2026 LoongBa.cn(洛博网络科技)· 保留所有权利。
本仓库为非开源软件,源码仅向签署商业授权合同的客户开放。未经授权,禁止复制、分发、传播源码或二进制,禁止修改后再分发。详见 LICENSE。
商业授权请联系 LoongBa.cn。
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 |
|---|---|---|
| 4.10.28 | 0 | 9/16/2026 |
| 4.10.27 | 44 | 9/15/2026 |
| 4.10.26 | 55 | 9/15/2026 |
| 4.10.25 | 58 | 9/14/2026 |
| 4.10.24 | 66 | 9/14/2026 |
| 4.10.19 | 74 | 9/13/2026 |
| 4.10.14 | 68 | 9/12/2026 |
| 4.10.13 | 66 | 9/12/2026 |
| 4.10.12 | 64 | 9/12/2026 |
| 4.10.11 | 62 | 9/11/2026 |
| 4.10.10 | 58 | 9/11/2026 |
| 4.10.9 | 59 | 9/11/2026 |
| 4.10.8 | 56 | 9/11/2026 |
| 4.10.7 | 63 | 9/11/2026 |
| 4.10.6 | 62 | 9/11/2026 |
| 4.10.4 | 66 | 9/10/2026 |
| 4.10.3 | 71 | 9/10/2026 |
| 4.10.2 | 59 | 9/10/2026 |
| 4.10.1 | 67 | 9/10/2026 |
| 4.10.0 | 68 | 9/10/2026 |
Loading failed