Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert a .NET exe to native Win32 exe?

Tags:

c#

winapi

How can I convert a .NET exe to Win32 exe? (I don't have the code) The purpose is to run the application in Linux using wine. I presume that .NET exe cannot be run in wine and I don't want to use mono.

like image 666
softwarematter Avatar asked Jan 24 '23 15:01

softwarematter


2 Answers

depending on what version of .NET it is and what libraries it makes use of you could try running it under Mono without compiling the IL down to native code.

most Linux distributions have it available under their package management systems.

see: http://www.mono-project.com/Main_Page for more details

the alternative is to use NGen to do the compiling (http://blogs.msdn.com/clrcodegeneration/archive/2007/09/15/to-ngen-or-not-to-ngen.aspx). but i'm not sure that would work under WINE.

like image 51
blacktau Avatar answered Jan 26 '23 04:01

blacktau


Depending on your framework version it might work with Wine .Net Framework compability in Wine

like image 39
Fredrik Leijon Avatar answered Jan 26 '23 04:01

Fredrik Leijon