Skip to content

[Question] Using LeMP and .ecs as T4 replacement #112

@dadhi

Description

@dadhi

Hi there and thanks for the interesting project(s).

I have read the documentation regarding using LeMP as C# generator and installed VS 2019 extension (btw, thanks for still supporting it). But maybe I am lacking the essential understanding of how things should work or am I chasing something else completely.

What I want is mostly C# code as the output of my .ecs file sprinkled with the dynamically generated methods and fields. Similar to this: https://github.com/jbogard/MediatR/blob/d916697159a1f1270d704c6fca95dab7dc274efa/samples/MediatR.Examples.DryIocZero/Container.Generated.tt#L131

Does it mean I need to construct LNode for the output methods and print it as a plain CSharp,
or should I do an intermediate quote step in some other place (what place?) and then use it LNode output for my purposes?

Basically is the LeMP alternative to T4 <# /* insert generated C# */ #>?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions