Multi-platform C#?
-
Is it possible to run a C# .NET program on Linux or MacOS? I read something about compiling a Portable Executable file, but I know nothing about it.
-
Mac OS has the full support of .NET. You can run not only C# in Mac OS but all the .NET compatible languages in it.
-
Mac OS has the full support of .NET. You can run not only C# in Mac OS but all the .NET compatible languages in it.
Leslu wrote: Mac OS has the full support of .NET. You can run not only C# in Mac OS but all the .NET compatible languages in it. This is not true. There is a reference implementation for BSD which is the OS the OS X is based, however it doesn't support enough of the framework to allow Windows C# apps to run on an Apple. Even the linux Mono project, only currently supports a subset of the entire .NET framework. Michael But you know when the truth is told, That you can get what you want or you can just get old, Your're going to kick off before you even get halfway through. When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
-
Leslu wrote: Mac OS has the full support of .NET. You can run not only C# in Mac OS but all the .NET compatible languages in it. This is not true. There is a reference implementation for BSD which is the OS the OS X is based, however it doesn't support enough of the framework to allow Windows C# apps to run on an Apple. Even the linux Mono project, only currently supports a subset of the entire .NET framework. Michael But you know when the truth is told, That you can get what you want or you can just get old, Your're going to kick off before you even get halfway through. When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
The first part of his statement may be wrong, but his second part is not. Since all languages targeting the CLR produce IL (with little differences due to compiler optimizations and language features), any pure .NET language will work (for instance, mixed-mode Managed C++ would not because it contains native instructions). Just wanted to point that out to make sure there was no confusion on this often-misunderstood subject.
Microsoft MVP, Visual C# My Articles