Skip to content

feat(generators)!: move serializable binder generation to Unity - #329

Merged
VPDPersonal merged 2 commits into
mainfrom
feat/unity-serializable-binders
Nov 20, 2026
Merged

VPDPersonal merged 2 commits into
mainfrom
feat/unity-serializable-binders

Conversation

@VPDPersonal

@VPDPersonal VPDPersonal commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Warning

Import Aspid.MVVM for GenerateSerializableBinderAttribute. Projects registering analyzers manually also need Aspid.MVVM.Unity.Generators.dll.

Why

Custom Unity binders can generate their serializable counterparts without a dependency on StarterKit.

What

  • Move the public attribute into the Unity runtime assembly.
  • Move generation and its regression tests into the Unity generator solution.
  • Rebuild both generator DLLs and document the namespace change.
  • Include the attribute source in the test job’s sparse checkout.
  • Regenerate the API reference for the Unity assembly.
- Aspid.MVVM.StarterKit.GenerateSerializableBinderAttribute
+ Aspid.MVVM.GenerateSerializableBinderAttribute
Verification
  • Rebuilt the shipped DLLs using the pinned SDK.
  • Regenerated the API with DocFX and passed npm run check-api.
  • All 186 core and 49 Unity generator tests passed with .NET 10 runtime roll-forward.
  • The new Roslyn test compiles a consumer against the actual attribute and minimal runtime types without StarterKit.

Expose the attribute in the Unity runtime and verify that custom binders compile without StarterKit.
@VPDPersonal VPDPersonal added type: feature New feature or capability breaking-change Backwards-incompatible change requiring major version bump area: runtime Runtime / player code area: docs Documentation / knowledge wiki area: generator Source generators and their DLLs labels Nov 20, 2026
@VPDPersonal
VPDPersonal marked this pull request as ready for review November 20, 2026 21:50
@github-actions github-actions Bot added status: needs-review Ready for review area: ci CI / build pipeline labels Nov 20, 2026
@VPDPersonal
VPDPersonal merged commit 84bbda0 into main Nov 20, 2026
23 checks passed
@VPDPersonal
VPDPersonal deleted the feat/unity-serializable-binders branch November 20, 2026 22:10
@github-actions github-actions Bot removed the status: needs-review Ready for review label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI / build pipeline area: docs Documentation / knowledge wiki area: generator Source generators and their DLLs area: runtime Runtime / player code breaking-change Backwards-incompatible change requiring major version bump type: feature New feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant