[Mono-winforms-list] How to deploy a .net application on Linux OS

Natalia Portillo claunia at claunia.com
Sat May 28 09:18:56 EDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


El 21/04/2011, a las 12:10, dhirub4u escribió:

> Hello All,
> 
> I am newbie to MONO. I have no experience in Linux OS too.
> We have a .net application which runs fine on windows operating system. But
> one of our client wants the same application running on Linux operating
> system.
> We have no expertise to build a separate application for Linux operating
> system. After googling found that MONO could help us to run .net application
> in Linux OS.
> 
> But i am not sure how it will happen. After looking at mono website we need
> to install MONO on linux OS to support .net application.
> But i need help on following
> 1. How to install MONO on Linux.

Each distribution's package manager (SuSE, Debian, RedHat, Fedora, Mandriva) does have its own way.
You should check the distribution's documentation.

Usually the package is just named mono.

> 2. After installing MONO how to install .net application on linux ?

The easiest and less user friendly way is to copy the resulting .NET application and assemblies (.exe and .dll files) to a single folder and then in command line do "mono myapp.exe"
You can also put the .exe and .dll files on the expected binaries folder (usually /usr/bin or /usr/local/bin depends on distribution also)

If you want a simpler installer package you need to check how a package is created for each distribution (hints: Debian package howto, RPM howto)

> 3. do we need to build .net application separately for linux? or same
> application will start working without any changes  ?

No, but:

1.- If you use an obfuscator it may have an option to chroot it (also called "virtualize" by some obfuscators), compile it, or any other strange thing that will make it incompatible with Mono. This is a try & error.
2.- If your application is using P/Invokes you must provide the same libraries in their native Linux version (or use the ones by the distribution, and require them when creating the package).
3.- If your application is using P/Invokes to call Win32 APIs you must stop doing so and search for a pure solution.

You can download MoMa from http://www.mono-project.com/MoMA and it will give you hints on things you must change because they are not compatible with Mono, not yet working well, or there is a better recommended way.

> Your help will be highly appreciated.
> 
> Thanks,
> Dhiren
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://mono.1490590.n4.nabble.com/How-to-deploy-a-net-application-on-Linux-OS-tp3465657p3465657.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iF4EAREIAAYFAk3g9kEACgkQv/wfOsykIRQhxAEAwyVKFRcp7FHA77MRajl7z6uq
X4M+GQPxQBVkwlznWz0BAIpMzQpXSijV4W/2L5xAsL8rkfF6pETk5T+dXaYIb+5K
=hN3c
-----END PGP SIGNATURE-----


More information about the Mono-winforms-list mailing list