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. .NET (Core and Framework)
  4. .NET platform independant?

.NET platform independant?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpquestionlinuxtutorial
8 Posts 3 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.
  • P Offline
    P Offline
    Peter Greenall
    wrote on last edited by
    #1

    Hi - a quick question. In one of my books it mentions that .NET programms can run on multiple platforms. Is this just referring to different versions of windows, or is it possible to run apps written for example in c# on linux/Mac OS/Unix etc. If it is possible - roughly how is it done and is anything required on the target OS if it is not windows to allow it to use the application. Cheers Peter

    J 1 Reply Last reply
    0
    • P Peter Greenall

      Hi - a quick question. In one of my books it mentions that .NET programms can run on multiple platforms. Is this just referring to different versions of windows, or is it possible to run apps written for example in c# on linux/Mac OS/Unix etc. If it is possible - roughly how is it done and is anything required on the target OS if it is not windows to allow it to use the application. Cheers Peter

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Since Microsoft built the .NET Framework based on detailed specifications, and then published those specifications and the documentation for the .Net Framework Class Libraries, it allows other people to produce code on other platforms that re-produces the same behavior... therefore, if you take C# code and re-compile it on another platform with C# compiler written for that platform, it should work. Check out the Mono project, http://www.go-mono.com/[^]. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      M 1 Reply Last reply
      0
      • J John Kuhn

        Since Microsoft built the .NET Framework based on detailed specifications, and then published those specifications and the documentation for the .Net Framework Class Libraries, it allows other people to produce code on other platforms that re-produces the same behavior... therefore, if you take C# code and re-compile it on another platform with C# compiler written for that platform, it should work. Check out the Mono project, http://www.go-mono.com/[^]. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

        M Offline
        M Offline
        Michael Flanakin
        wrote on last edited by
        #3

        Technically, you shouldn't have to recompile it. Michael Flanakin Web Log

        J 1 Reply Last reply
        0
        • M Michael Flanakin

          Technically, you shouldn't have to recompile it. Michael Flanakin Web Log

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          Didn't know that. On the other hand, perhaps I should doubt the observation of anyone in the Air Force...? (* former Army guy *) What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

          M 1 Reply Last reply
          0
          • J John Kuhn

            Didn't know that. On the other hand, perhaps I should doubt the observation of anyone in the Air Force...? (* former Army guy *) What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

            M Offline
            M Offline
            Michael Flanakin
            wrote on last edited by
            #5

            It's ok, I work with a former Army guy, and I have to explain stuff to him all the time... "No, that lace goes over the other one." :) j/k As far as I know, the only thing you truly have to worry about is moving between versions, or using any part of the library that may not be supported on a specific OS's version of the .NET Framework. I don't have any examples, but I believe there are a few things Win98 and WinNT4 can't do. When you're looking at the classes within the MSDN library, scroll to the bottom of the screen and the platform requirements are listed. Just use this as a guide and you should be set. Michael Flanakin Web Log

            J 1 Reply Last reply
            0
            • M Michael Flanakin

              It's ok, I work with a former Army guy, and I have to explain stuff to him all the time... "No, that lace goes over the other one." :) j/k As far as I know, the only thing you truly have to worry about is moving between versions, or using any part of the library that may not be supported on a specific OS's version of the .NET Framework. I don't have any examples, but I believe there are a few things Win98 and WinNT4 can't do. When you're looking at the classes within the MSDN library, scroll to the bottom of the screen and the platform requirements are listed. Just use this as a guide and you should be set. Michael Flanakin Web Log

              J Offline
              J Offline
              John Kuhn
              wrote on last edited by
              #6

              Flanakin wrote: It's ok, I work with a former Army guy, and I have to explain stuff to him all the time... "No, that lace goes over the other one." -- that's probably why we stopped issuing lace-up boots in the late 80's and started issuing speed-lacers; you only have to lace them once... of course, I heard the Army got that idea from the Air Force... :-D OK, i kinda already knew that about NT/98 -- but running Mono on Linux? What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

              M 1 Reply Last reply
              0
              • J John Kuhn

                Flanakin wrote: It's ok, I work with a former Army guy, and I have to explain stuff to him all the time... "No, that lace goes over the other one." -- that's probably why we stopped issuing lace-up boots in the late 80's and started issuing speed-lacers; you only have to lace them once... of course, I heard the Army got that idea from the Air Force... :-D OK, i kinda already knew that about NT/98 -- but running Mono on Linux? What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

                M Offline
                M Offline
                Michael Flanakin
                wrote on last edited by
                #7

                Well, in theory, as long as Mono has everything implemented, it should work. But, these are also the same concepts that are used in the Java world, and you've probably seen how successful they've been. In my opinion, unless Microsoft gets involved in the cross-platform .NET initiative, it won't completely succeed. I'm sure it will exist and successful systems will be developed. But, nobody knows .NET like Microsoft. And, Microsoft will continue to knock out updates, making it hard to keep up - especially if they feel threatened by Mono or other projects. And, you can't escape the fact that most people who use Linux are doing so for the sole purpose of not using Microsoft technologies. Not all, mind you, but I would feel comfortable in saying "most." ...Of course, they'll never admit it and I'll probably get a bunch of static for saying this; but, we all know it's true. Michael Flanakin Web Log

                J 1 Reply Last reply
                0
                • M Michael Flanakin

                  Well, in theory, as long as Mono has everything implemented, it should work. But, these are also the same concepts that are used in the Java world, and you've probably seen how successful they've been. In my opinion, unless Microsoft gets involved in the cross-platform .NET initiative, it won't completely succeed. I'm sure it will exist and successful systems will be developed. But, nobody knows .NET like Microsoft. And, Microsoft will continue to knock out updates, making it hard to keep up - especially if they feel threatened by Mono or other projects. And, you can't escape the fact that most people who use Linux are doing so for the sole purpose of not using Microsoft technologies. Not all, mind you, but I would feel comfortable in saying "most." ...Of course, they'll never admit it and I'll probably get a bunch of static for saying this; but, we all know it's true. Michael Flanakin Web Log

                  J Offline
                  J Offline
                  John Kuhn
                  wrote on last edited by
                  #8

                  Flanakin wrote: I'll probably get a bunch of static for saying this Not on this site you won't... most of the folks here seem to be pretty MS-oriented. ;) What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

                  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