Saravanan
Saravanan

Reputation: 11602

How to run C# 4.0 app on Linux OS using mono?

I want to run my c# application with OS Linux using Mono. I am new to this cross platform migration? Please tell the procedure for doing that?

Thanks & Regards.

Upvotes: 1

Views: 825

Answers (3)

Adeel
Adeel

Reputation: 19238

There is an IDE, MonoDevelop that supports Web and Desktop applications. Open the project files (monodevelop supports visual studio project files) from monodevelop, compile and run.

you can browse mono website here, where you can find which features are supported and which are not supported and why.

Upvotes: 1

eSPiYa
eSPiYa

Reputation: 950

Check if your application is 100% compatible with Mono Framework using MoMA. Remove or replace those unimplemented parts with Mono's implementation or third party libraries that works with Mono. Or if you think it should work fine, just execute it with Mono Framework 2.8 or higher. Better go with 2.10 which is default's profile is on 4.0.

Upvotes: 3

Jon Skeet
Jon Skeet

Reputation: 1503280

It very much depends on what type of application it is. For a console or WinForms app, it may be simple. Mono doesn't support WPF.

Well, the first think you'll need to do is install Mono of course. Then you probably want to run MoMA to determine your application's compatibility. There's a whole separate page about porting WinForms apps.

If all is well, you should just be able to run your application using:

mono MyApplication.exe

after copying the binaries over.

If your application is actually a web service or web application, you'll want to think about the various hosting options.

I suspect you'll want to read a lot of the pages on the Mono Start Page.

Upvotes: 4

Related Questions