DotNetPELib icon indicating copy to clipboard operation
DotNetPELib copied to clipboard

Support linux

Open LADSoft opened this issue 1 year ago • 2 comments

the portions of the code that look up system dlls don't work on linux. This could be improved, especially for .net core...

I'm leaving this as an issue rather than just addressing it because I'm not sure if there is any interest in it.

LADSoft avatar Apr 20 '24 22:04 LADSoft

The first question would be: how is this compiled and could be tested outside of occil?

GitMensch avatar May 03 '24 05:05 GitMensch

There is code in the project, to exercise basic functionality of both the .NET FRAMEWORK and .NETCORE aspects of the project. It was meant as a demo, so I maintain it and test with it.

The .NETCORE is minimal exercising compared to the .NET Framework. Although neither set of exercises is very comprehensive it at least gives the go/no go to whether basic functionality required for generating a valid executable is there.... It loads assemblies, searches through them, and generates some code and data before generating output.

Supposing I got a port to linux done, I would probably beef up the .NETCORE tests, and then write Github Actions to compile the library with an appropriate program, and then run the exercises and make artifacts. Similar to what we are currently doing for the Compiler project. The compiler has both windows and linux Actions so we can do something similar to that.

I would also review the appveyor build because I don't remember exactly what it is doing at this point... maybe it could be improved a little...

I would also review the github actions for the occil tests (I think they are part of the compiler suite action) and see if I can get the .NETCORE portion of the occil tests running there. The main reason I didn't want to do that on appveyor is we are on an older windows image that might not have support for .NETCORE.

Porting to linux wouldn't be too bad, just gotta get an ubuntu vm set up and work there for testing... I already know what the scope of work is and there isn't much to it. but that is supposing I have enough disk space. I might not, as my current computer is a little skimpy in that regards...

LADSoft avatar May 03 '24 20:05 LADSoft