Results 1 to 14 of 14

Thread: [RESOLVED] .NET on linux

  1. #1

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Resolved [RESOLVED] .NET on linux

    Do linux users need an emulator to run .NET applications? like WINE?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: .NET on linux

    I think you are suposed to use Mono.

    Ps, we do have a Linux forum.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: .NET on linux

    Yea, just this isn't really for development atleast not yet

    I was just wondering i have been doing some googling and it says some stuff about using the terminal but thats about all. But i also discovered it is distributed with a CLR which i am not sure if its based off WINE or the .NET CLR.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: .NET on linux

    Yea i know that linux users need mono, but i have heard that you need an emulator like 1) WINE to run the application 2) or it needs to be recompiled, 3) or you just tell mono to run it via the terminal.

    sorry for the misunderstanding i am just trying to get my head around this .NET, mono, Linux stuff it all intrigues me

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: .NET on linux

    I tried the MonoDevelop IDE with some project I've done on VS. I don't know why but it had a problem with my resource files and the GUI kept crashing when using the System.Windows.Forms assembly.

    Maybe there are somethings that need to be changed in order to run on Mono. but for console applications I didn't have any problems.

    Oh and the IDE is a mess.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  7. #7
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: .NET on linux

    I cant understand why you would need an emulator. If you use mono you are developing a linux app not a windows one. The idea of the framework is to abstract away from the OS is it not?
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: .NET on linux

    Not really CodeFire, you are actually building a .NET app that will run on Linux as well as other OS'.

    Quote Originally Posted by Mono Site
    Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: .NET on linux

    @RD: I know, shame on me, hell i even contradicted myself in my post by saying that and then saying it abstracts away from the OS. God im a dope! Fact of the matter is you would not need an emulator!
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  10. #10

    Thread Starter
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: .NET on linux

    It doesn't need to be recompiled though does it? And CodedFire all managed code uses an emulator (CLR in .NET's case) but i am just wondering if...

    1) It needs to be recompiled for linux? Or you can just tell the mono framework to run it, and it will do the rest for you.

    2) I know the mono comes with an emulator but i was just wondering if it is an almost carbon copy of the Microsoft one or if its based off WINE?

    3) Or do you need to use WINE or some other emulator regardless of the emulator that comes with mono.

  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: .NET on linux

    Mono is not very reliable. If you are going to try using it I recommend you develop and test your applications on Linux before testing them on Windows. That way you are less likely to use anything that can't be ported.


    Recompilation is not necessary. The mono compilers will produce a Windows PE file which can be run through

  12. #12
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    Re: .NET on linux

    Is the CLR not an interpretor. An emulator (like wine) emulates the windows system where as the CLR compiles your code via JIT from CIL to Machine code as it needs to?
    Languages: Visual Basic 05/08, C# 08
    IDE: Express Editions
    Framework: 2.0, 3.0, 3.5


    Lesson 5: Don't take domestic advice from perpetual singles. - Mendhak

  13. #13
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: .NET on linux

    Quote Originally Posted by Paul M
    Yea i know that linux users need mono, but i have heard that you need an emulator like 1) WINE to run the application 2) or it needs to be recompiled, 3) or you just tell mono to run it via the terminal.
    1. WINE can run the .Net framework and .Net applications I believe but it's an extra layer of abstraction that isn't needed if you're going to use Mono. You don't need WINE if you compile with Mono.
    2. Yes, a .Net application has to be recompiled into a Mono application before it can use the Mono framework instead.
    3. I believe you, by default, have to run all Mono applications from a command line (though I could be wrong).

    Quote Originally Posted by CodedFire
    I cant understand why you would need an emulator. If you use mono you are developing a linux app not a windows one. The idea of the framework is to abstract away from the OS is it not?
    Erm, you contradicted yourself there. At first you say the mono app you're creating is a Linux app but then you say the idea of the framework is to be abstract from the OS.

    Mono is an open-source version of the .Net framework. Applications compiled in Mono can run on any system that has the Mono framework installed (so you can compile a mono application in Windows and run it in OS X or Linux).
    Quote Originally Posted by CodedFire
    Is the CLR not an interpretor. An emulator (like wine) emulates the windows system where as the CLR compiles your code via JIT from CIL to Machine code as it needs to?
    First, WINE Is Not an Emulator (heh). Secondly, take a look at this: http://en.wikipedia.org/wiki/Common_Language_Runtime
    Quote Originally Posted by penagate
    Recompilation is not necessary. The mono compilers will produce a Windows PE file which can be run through
    Are you sure? While it creates something similar to a Windows PE file (much like a regular .Net application, I don't believe it's exactly the same but I don't really know), last I used the Mono framework I had to re-compile my applications so it would reference them and not the .Net framework. I'm not entirely sure what a Windows PE file has anything to do with Mono or .Net since both require the framework to be present to even run.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  14. #14
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: .NET on linux

    My post appears to have been cut off. I meant to say "which can be run through either mono or the .NET Framework CLR."

    .NET binaries contain a PE header and a stub which invokes the CLR, which makes them technically PE files even if the executable code they contain is not native.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width