Plugin project structure
Recommended steps
- Create a classlib project; the name should preferably include
Luban. - Reference
Luban.Core(and Builtin packages as needed). - Add a ProjectReference from the main Luban project to your plugin so the output directory can find the dll.
- Copy/follow existing modules’
AssemblyInforegistration pattern (RegisterBehaviour). - Implement the interfaces and apply the matching Attribute (e.g.
[CodeTarget("my-lang")]).
Embedded use
Reference Core → SimpleLauncher.Start → Create Pipeline → Run
Useful for embedding Luban in an editor or a custom CI tool.
Related links
- Extension overview
- Source examples:
Luban.CSharp,Luban.DataValidator.Builtin, and similar in the repo