TC.Tier.CodeGen 1.0.0-alpha.2

This is a prerelease version of TC.Tier.CodeGen.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TC.Tier.CodeGen --version 1.0.0-alpha.2
                    
NuGet\Install-Package TC.Tier.CodeGen -Version 1.0.0-alpha.2
                    
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="TC.Tier.CodeGen" Version="1.0.0-alpha.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TC.Tier.CodeGen" Version="1.0.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="TC.Tier.CodeGen" />
                    
Project file
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 TC.Tier.CodeGen --version 1.0.0-alpha.2
                    
#r "nuget: TC.Tier.CodeGen, 1.0.0-alpha.2"
                    
#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 TC.Tier.CodeGen@1.0.0-alpha.2
                    
#: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=TC.Tier.CodeGen&version=1.0.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TC.Tier.CodeGen&version=1.0.0-alpha.2&prerelease
                    
Install as a Cake Tool

TC.Tier.CodeGen

TC.Tier 的源生成器(analyzer 包)——编译期生成,零运行时反射。安装后自动提供:

能力

  • BinaryLayout:为标注类型生成高效的二进制序列化/反序列化代码(布局 + codec;字段偏移/ 读写/尺寸常量全部由生成物产出——手写字节序零残留)
  • WireMessage:RPC 消息族线格式(tag 判别 + 公共前缀 + 变长成员;未知 tag 解码返回 false 前向兼容)
  • WireArray/WireMember:变长集合字段([Count][item×N],防御上限显式声明)
  • ConstantRegistry:常量表注册(重复值编译期 Error + 区间助手——协议域五区制)
  • TierFs 协议注册桥:引用协议程序集(如 S3)即自动注册 TierFs 介质协议,消费方零配置
  • 命令壳(CommandShell,#435)[CommandGroup] 命令组一份定义生成 CLI + HTTP 双执行面 (参数绑定/帮助文本/补全/退出码与状态码映射——零反射);使用文档见 docs/command-shell.md
  • 分层依赖封堵:经 TC.Tier.Analyzerstier_layer.* 配置键(TCSG130-133)编译期封堵 (如 Core.Net 禁引用产品层/机制面互禁)——本包自身为纯生成器(IIncrementalGenerator,无分析器)

安装

dotnet add package TC.Tier.CodeGen

包内 analyzer 在编译期自动生效(无需额外配置);项目需配合 TC.Tier.CodeGen.Abstractions 中的标注特性使用。

文档

  • 完整文档站:https://docs.mytzz.top/
  • 生成器家族总览:https://docs.mytzz.top/docs/codegen/generators.html
  • API 参考:https://docs.mytzz.top/api/
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
1.0.0-alpha.4 0 9/19/2026
1.0.0-alpha.3 29 9/18/2026
1.0.0-alpha.2 31 9/18/2026
1.0.0-alpha.1 35 9/16/2026