Click here to Skip to main content
15,919,749 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Pre dot net :
Before dot net,language compiler (for example VB compiler) dont generates IL (intermediate language)
It only generates native code. so their was no portability in pre dot net applications. They are failed to run on operating systems other than windows.

With dot net :
Dot net applications generates Assembly with intermediate language. which later convert by CLR (JIT) into native code. because of intermediate language there is portability.

BUT,

I googled some questions still in my mind
Is dll run on mac/linux?
Is exe run on mac/linux?
Is Microsoft office run on mac/linux?

Believe me there are no answers which says clearly YES or NO. I got the answers with :
you have to install something...
you can make it run...

IS Microsoft provides Operating system suitable dot net framework or CLR.
Really confused!!!

Please clear me if I am wrong.

Thanks,
Suraj.
Posted

Is dll run on mac/linux? -- DLL does not run itself, these are library, has to loaded by some executables, so for mac and linux , these can be of different formats, .so ( shared objects) , but if you say .net APP has produced those and can they run on linux/Mac, then my answer would be NO , you need to install wine ( that is an executable which makes MAc/linux read those DLL ).

For linux, you have MONO, which is .net runtime for linux.

Is exe run on mac/linux? -- for linux refer to MONO, - -
XML
http://en.wikipedia.org/wiki/Mono_(software)


Is Microsoft office run on mac/linux -- Yes, Microsoft has office APP for Mac only.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Sep-14 21:54pm    
Mono is not ".net runtime for linux".
First, it's no not ".net runtime", this is CLR.
Second, it's not "for linux", it is multiplatform.
—SA
surajsurve 14-Sep-14 1:01am    
Right. but I think when someone say .net run time than it automatically refers to CLR (common language run time). It's a run time environment for .net framework.
Sergey Alexandrovich Kryukov 14-Sep-14 9:07am    
No. It's "Common Language Runtime". Can you spot the difference? :-)
All 3 my statements remain valid.
—SA
surajsurve 14-Sep-14 12:08pm    
R u trying to say "mono is the CLR for linux, its not a .net's CLR (.net runtime)" Is it?
Sergey Alexandrovich Kryukov 14-Sep-14 19:05pm    
Right. ".NET" is the term related to a particular implementation of CLR, and CLR is the standard and the more general term.
—SA
Simple answer: NO, you cannot run Microsoft .NET Framework based applications on Linux or Mac OS X.

You can have a look at Mono (http://www.mono-project.com/[^] however, which contains a migration tool to analyze your current solution to port it to Mono, which is very similar to the Microsoft .NET Framework, but far from complete.

For GUI purposes, it contains a very limited WinForms implementation (up to .NET 2.0) that is only ported to OS X. It also contains a more mature GUI toolkit, GTK#, which can run on Linux, Windows and OS X.

In conclusion, if you want to create an application that will run on other platforms then just Windows, make sure to consider this early, because it has a big effect on your codebase.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 7-Sep-14 21:55pm    
It is NOT "up to .NET 2.0 and not "very limited". But yes, it has some incompatibilities and defects (.NET has them, too...)
—SA
kbrandwijk 8-Sep-14 6:30am    
@SA: Please review http://www.mono-project.com/docs/gui/winforms/. It says: "Support for Winforms 1.1 and 2.0 has been completed, and is now in a maintenance/bug fixing state.". My remark was specifically about the WinForms version supported by Mono. So yes, WinForms support is up to 2.0. Other aspects of WinForms are also not implemented as described on the same page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900