Skip to content

"Compile" a .NET EXE or DLL to Lua #424

Open

Description

@2dpdlja496or43iq

Like I suggested on #422, automatically run the decompiler to decompile to C# then translate to Lua.

Activity

  1. Drake53 commented on Apr 24, 2023

    @Drake53
    Contributor

    In my fork I added the option to give a .csproj file as input, then its package references will be automatically decompiled.

  2. yanghuan commented on Apr 25, 2023

    @yanghuan
    Owner
  3. 2dpdlja496or43iq commented on Apr 29, 2023

    @2dpdlja496or43iq
    Author

    In my fork I added the option to give a .csproj file as input, then its package references will be automatically decompiled.

    What if I don't have any .csproj and simply want to use a .NET DLL?

  4. Drake53 commented on Apr 30, 2023

    @Drake53
    Contributor

    Then you'll have to decompile it yourself.
    In my fork I use the following library for this: https://github.com/icsharpcode/ILSpy

    I implemented the decompiler at the following location: https://github.com/Drake53/CSharp.lua/blob/master/CSharp.lua/LuaSyntaxGeneratorFactory.cs#L132
    At this point I already extracted the .dll's from the nuget packages so it should be easy to adjust this code for your own needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions