I used the runtime.win-x64.Microsoft.NETCore.ILAsm
nuget to get ilasm.exe to compile my CIL codes. It compiles everything correctly for the windows .exe PE, but apparently it doesn't compile for Linux and MacOS...
I know that using .NET 5.0 or newer with the dotnet --runtime
command is able to compile for any supported OS. How to do this using CIL instead of C#? I thought it was using ilasm.exe
, but apparently it's not possible, so what would be the solution for that?
Note: I already used the linux ilasm
and the code compiled on linux was a .exe PE, an extension and format that doesn't work on linux (linux uses ELF format)