"Compile" a .NET EXE or DLL to Lua
Like I suggested on https://github.com/yanghuan/CSharp.lua/issues/422, automatically run the decompiler to decompile to C# then translate to Lua.
In my fork I added the option to give a .csproj file as input, then its package references will be automatically decompiled.
#422
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?
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.