Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4176  / 2 Years ago, mon, december 27, 2021, 11:02:59

I have written few simple console C# programs in Monodevelop but it seems they run in some emulated enviroment while debugging. The end result is a .exe file which does not runs natively on Ubuntu.



What I need to know is if Mono is same as Visual C# on Windows? Can we create native GUI applications with Monodevelop just as we can with QT Creator(Linux)/Visual Studio(Windows)? If yes, how? If no, why? Why we need Mono on Linux?


More From » monodevelop

 Answers
0

C# and all the other languages belonging to the .NET framework are interpreted languages. They are pseudo-compiled, not truly compiled (like C). The bytecode of the .NET framework is called Common Intermediate Language (CIL).



The interpreter (sometimes known as "virtual machine") for the Common Intermediate Language is the .NET Common Language Runtime on Windows and Mono on Linux. Therefore, C# applications won't run "native" (i.e. without an interpreter), not even on Windows.



Probably what surprises you is that Mono is not installed by default on some Linux distributions, while the .NET runtime is.



Anyhow, you can write applications in C# that are nicely integrated with Ubuntu. An example is Tomboy.



There's also an another language, similar to C#, developed by the GNOME project, which is Vala. Vala is translated into C, which is itself compiled, so it will run "native". Because Vala was built by GNOME developers for GNOME developers, it is extremely easy to integrate with the GNOME desktop environment.


[#27607] Wednesday, December 29, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
doredtness

Total Points: 153
Total Questions: 113
Total Answers: 106

Location: South Georgia
Member since Fri, Nov 13, 2020
4 Years ago
;