Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Multi-platform C#?

Multi-platform C#?

Scheduled Pinned Locked Moved C#
csharplinuxquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kryal
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • K Kryal

      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.

      D Offline
      D Offline
      Dmitriy Kostovetskiy
      wrote on last edited by
      #2

      There is a project [^]to port .NET Framework to Linux. I guess you should be able to run it on Mac OS X too. I don't think though they will ever port every class in .NET framework.

      G 1 Reply Last reply
      0
      • D Dmitriy Kostovetskiy

        There is a project [^]to port .NET Framework to Linux. I guess you should be able to run it on Mac OS X too. I don't think though they will ever port every class in .NET framework.

        G Offline
        G Offline
        Gerald Leslie Jones
        wrote on last edited by
        #3

        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.

        M 1 Reply Last reply
        0
        • G Gerald Leslie Jones

          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.

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          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

          H 1 Reply Last reply
          0
          • M Michael P Butler

            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

            H Offline
            H Offline
            Heath Stewart
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups