views:

66

answers:

2

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
How do I know that the functions I wrote are supported by Mono?
Arjun Vasudevan
Thanks for the link.
Arjun Vasudevan
@Arjun: IIRC, Mono provides a tool that can check your code and report any possible problems with converting.
peachykeen
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
@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
You can definitely run Windows compiled CIL binaries in linux; that is the whole point of the CLI.
Callum Rogers
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
A: 

You could also use Wine

EarthMind
You must install the .NET Framework. If compatible, better to use Mono
Yassin
-1: Wine may be an idea for _native_ applications, but in this case the asker is using .Net binaries.
Callum Rogers