feat: add NuGet and Godot distribution
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Shrink Shared CodeGen
|
||||
|
||||
Editor-only UPM 包,为引用 ShrinkCommand.Runtime、ShrinkNetwork.Runtime 或 ShrinkApp.Core.Runtime 的程序集生成程序集级注册表。
|
||||
Unity Editor UPM 包,为引用 ShrinkCommand.Runtime、ShrinkNetwork.Runtime 或 ShrinkApp.Core.Runtime 的程序集生成程序集级注册表。
|
||||
|
||||
该包只通过 Cecil 按程序集名和类型全名读取元数据,不在 asmdef 或 UPM 层反向引用业务包。因此 App、Command、Network 可以依赖它而不形成循环依赖。运行时不包含此包代码。
|
||||
|
||||
`DotNet~` 包含同一 Cecil 织入核心、Roslyn Analyzer 和 `ShrinkSDK.CodeGen` MSBuild 包。Godot 或普通 .NET 项目引用 EventBus、Command、Network、App 等包后,会通过 `buildTransitive` 自动启用织入。
|
||||
|
||||
```powershell
|
||||
dotnet add package ShrinkSDK.CodeGen --version 0.1.0
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user