Skip to main content

A message DSL for Zebus (source generator for .msg files)

Total Downloads
5.7K
5,735
Published
Apr 17, 2026
7mo ago

Get Started

dotnet add package Zebus.MessageDsl.Generator --version 1.6.0

No framework information available.

README

Zebus Message DSL

This is a DSL which simplifies the writing of ProtoBuf contracts for Zebus.

See the GitHub repository for more information.

Example

Input file:

SomeMessage(int foo, string[] bar)

Generated code:

[ProtoContract]
public sealed partial class SomeMessage : IEvent
{
    [ProtoMember(1, IsRequired = true)]
    public int Foo { get; private set; }
        
    [ProtoMember(2, IsRequired = false)]
    public string[] Bar { get; private set; }
        
    private SomeMessage()
    {
        Bar = Array.Empty<string>();
    }
        
    public SomeMessage(int foo, string[] bar)
    {
        Foo = foo;
        Bar = bar;
    }
}

Downloads by Version

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.