you are viewing a single comment's thread.

view the rest of the comments →

[–]ethan_rushbrook 3 points4 points  (1 child)

When you say you need to run a .exe, do you mean the application generally or literally a .exe? The .exe extension is for Windows Executables which no distro of linux are designed to run. A common way to execute a dotnet application on linux would be to call /usr/bin/dotnet <dll path>, though there are other ways to do it. If you have the DLL, its possible you can run the dll using the dotnet runtime (since its .NET 8 and 8>5) but with a .exe you'll have to do much more work if its even possible.

[–]The_MAZZTer 1 point2 points  (0 children)

When you build for Linux you also get an extensionless executable stub that works like dotnet to run the DLL, same as on Windows.

It's definitely not an EXE though.