I've developed a Notepad kinda Windows application in VB.NET using Visual Studio 2008. Is it possible for me to run the file in the Linux environment if I install the mono-develop package?
+5
A:
If all the functions you have used are supported by mono, you should be able to.
Check your application with MOMA (The Mono Migration Analyzer) to be sure.
One difference from windows is that you can't simply call the executable - you need to call mono executablename.exe
.
Oded
2010-04-18 17:27:03
How do I know that the functions I wrote are supported by Mono?
Arjun Vasudevan
2010-04-18 17:28:24
Thanks for the link.
Arjun Vasudevan
2010-04-18 17:28:54
@Arjun: IIRC, Mono provides a tool that can check your code and report any possible problems with converting.
peachykeen
2010-04-18 17:30:24
Note that this will not **run** the Windows-compiled binary. This will tell you whether your application can be compiled for Linux using Mono or not. If it can be, you can then re-compile the project using mono-develop to get it working on Linux.
Felix
2010-04-18 17:30:57
@Felix - however, if there are no conflicts the runtime will be able to run the application _as is_. See the technical FAQ: http://www.mono-project.com/FAQ:_Technical
Oded
2010-04-18 17:32:09
You can definitely run Windows compiled CIL binaries in linux; that is the whole point of the CLI.
Callum Rogers
2010-04-18 18:12:02
It should be possible to configure binfmt_misc to execute CIL binaries using mono as the interpreter, so that the executable can be directly executed.
caf
2010-04-19 06:29:45
-1: Wine may be an idea for _native_ applications, but in this case the asker is using .Net binaries.
Callum Rogers
2010-04-18 18:13:49