C# on OS X?

Discussion in 'Mac Programming' started by Sean7512, Sep 11, 2007.

  1. Sean7512 macrumors 6502a

    Joined:
    Jun 8, 2005
    #1
    I just started an internship for computer programming and the language is all in C#. Instead of installing Boot Camp and .Net 2005, I was wondering if I can write, and check for errors for C# code on my Mac either by a plug-in for Xcode or a different app? Running/Testing the code is not a concern because even in Windows, I would not be able to test since we're writing plug-ins and the original program is not available to us to take home. I just need something that can give me my errors in code that I write. So, is there anything or is Boot Camp necessary?
     
  2. iSee macrumors 68040

    iSee

    Joined:
    Oct 25, 2004
    #2
    Mono is the way to have C# on OS X.
    http://www.mono-project.com/Mono:OSX
    You still might be better off with VS under Bootcamp or Parallels/Fusion. I'm not sure if all the packages you want will be available.
     
  3. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #3
    BTW, don't forget about VMWare Fusion or Parallels as alternatives to BootCamp. I'm an ASP.NET C# developer and I routinely use either to run Windows and Visual Studio on top of OS X on my Mac Pro at work.

    Edit: Oops, iSee beat me to that thought.
     
  4. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #4
    Out of curiosity, have you ever used Mono along with BBEdit or some other friendly text editor? Having syntax highlighting plus easy access to make and run files from something like BBEdit would be convenient, although I'm pretty stuck with Visual Studio I think.
     
  5. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #5
    I used Mono awhile back with BBEdit. At the time they didn't have syntax coloring for C#, but Java worked just fine.
     
  6. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #6
    I can't really imagine what I'd use it for, since the work I do is so tied to the Microsoft world (Visual Studio, IIS, MS SQL, etc.) anyway, but it's an interesting prospect. How was the usability? What made you decide to try that instead of a Windows app?
     
  7. Sean7512 thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    #7
    Any BIG reason to pay for VMWare Fusion or Parallels when BootCamp is free? I'm just wondering because I am a poor college student. We get Vista Business free with our MSDN:AA, but I read somewhere that Vista's license prohibits it from running in a virtual machine (Parallels). Any ideas?

    Edit:
    Thanks for the quick replies! Mono does look good, but I might be better off sticking with VS, just so I am on the same page as everyone else :( Its depressing because I'd hate to install Windows on my Mac...it seems wrong, haha

    Edit 2:
    Any possible hiccups with Vista/OS X via BootCamp when its time to do an "Archive & Install" of Leopard?
     
  8. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #8
    I believe the Vista virtualization license issue is only for the "lower" versions. I think Ultimate (and maybe some of the lower ones) can be legally used virtually. You'd have to check on that...I'm still (happily) running XP in my VMs and have no intention of dealing with Vista for as long as I can avoid it.

    The biggest argument for Fusion/Parallels vs. BootCamp is running OS X apps side by side with Windows. If you have to restart the computer completely to switch apps, it gets old. Also, both Fusion and Parallels can virtualize a BootCamp partition, which is the best of both worlds - side-by-side virtualization when you want both OS X and Windows apps, and 100% dedication of system resources via BootCamp when you have a processor-intensive code build (or more likely a hankering for Counter Strike).

    Edit:
    Oops, forget to address *your* edits. As I've also been musing in this thread, I can't really imagine switching off VS without a lot of pain. Realistically, I have to run Windows for more than just VS anyway, so it wouldn't get me away from that need.

    BootCamp is moving from "beta" (despite many updates since its first release) to a production release along with the transition to Leopard. Considering it's pretty functional now, I doubt the changes will blow away existing BootCamp partitions. In contrast to the best-of-both-worlds argument I made above, you could also run Windows ONLY virtually, in which case BootCamp's future is irrelevant since you can backup and restore the VM as needed (great for testing out configs or software or if you hose your dev VM machine).
     
  9. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #9
    No you should be fine since it is on a separate partition. Just make sure you don't wipe your entire drive ;)
     
  10. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #10
    Good call :)

    BTW, I don't think this is relevant to this situation because we're talking about a laptop and presumably only one hard drive, but in my experience, Parallels has issues virtualizing BootCamp disks if it's on a second drive instead of a partition on the main drive, but Fusion works fine with either setup. Just in case that's relevant to anyone deciding between the two.

    Edit: OK, I must be tired. I have no idea where I got the impression this was for a laptop. So that might actually be relevant.
     
  11. Sean7512 thread starter macrumors 6502a

    Joined:
    Jun 8, 2005
    #11
    HAHA, this is for a 24" iMac (the family computer). I am planning on purchasing a Macbook (to take back and forth to the office) once Leopard comes out, so this thread kind of applies to both.

    One last question about BootCamp then...Is it possible to install Windows onto a external harddrive instead of partitioning the harddrive inside of the computer? I would *love* that setup if at all possible.
     
  12. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #12
    I've heard rumors that you can get Windows to run off a USB drive with some thorough effort, but I'd imagine that wouldn't be so great for speed or stability even if it did work. I suppose if you were running a pure VM (no BootCamp) you could store all the VM files on an external drive, I just don't know how the speed would be. But if you just want to be able to take the VM with you, you could always migrate it between the iMac and the MacBook via FireWire. And that definitely wouldn't work for BootCamp, since that needs an actual partition with real files, not just a VM config with a virtual hard drive (which is really just a file).
     

Share This Page