best way to get started in setting up Mono for ASP.NET on Mac
Asked Answered
S

5

7

I have recently gained access to a Mac. I am wondering if anyone has any tips/advice for setting up Mono on a mac for development and execution of ASP.NET? Most resources point to Linux implementations which tend to differ a lot from the way Mac's do things. Any tips or advice would be helpful

Stash answered 20/9, 2008 at 14:52 Comment(2)
A couple of people noted VM solutions. this isnt helpful - I was given a MAC and I wanted to work in asp.net in a different environment. my lennovo laptop runs VS very nicely but it doesnt teach me about the possibility of working with mono and not windows.Stash
Good question...I have a mac arriving this week and want to try mono too without all my Windows crutches.Accumulation
H
9

To launch the development ASP.NET server, just open a terminal window and run the "xsp2" command from the Mono installation.

The only thing that is missing from the Mono distribution on the Mac compared to Linux is the Apache module, that one you will have to compile yourself if you want to deploy your application in production on OSX.

Hernandes answered 20/9, 2008 at 22:46 Comment(1)
Thank you. I was at least able to run a page in a manner similar to the cassini web server on windows.Stash
S
2

Since I first worked with mono osx, they've added Cocoa# and ObjC#, but the ASP.NET core was pretty solid (about 3 years ago). You can in fact write web applications according to the Onion book, and port 'em to IIS with little or no difficulty.

Shields answered 20/9, 2008 at 22:57 Comment(0)
H
1

Honestly if you want to run ASP.NET you probably don't want to struggle with getting it to run via mono on MacOS. Intel-based Macintoshes can boot Windows, and Apple provides Windows drivers for their various devices as part of Boot Camp.

Alternately you can buy Parallels or VMWare Fusion for less than $100. I use VMWare Fusion. There is also a Mac version of VirtualBox from Sun which is free, though I have never used it.

For MacOS development (not .Net) you really should try Apple's XCode. It is free. It primarily focuses on Objective C though Python, Ruby, and other languages can be used to develop native Mac applications.


Edit 9/22: I'm sorry neither you nor Kev found this a useful answer. Let me try to expand a bit: the Macintosh has a long history of software being ported in from Windows, applying a theme to make the GUI elements look Mac-like but otherwise being content with a minimum cost port. Such software never behaves like a real Mac application: it doesn't respond to AppleEvents, it won't be scriptable, it handles only the cross-platform clipboard formats, etc.

You're free to do whatever you want, including running ASP.NET using mono. If its for your personal use, knock yourself out. However if you're considering it as a way to offer your web-enabled product in a Mac version, I urge you to reconsider. The Mac market has for the most part rejected such products. You'll get some sales, but nothing like you would get for an app which behaves like a native Mac application.

Now, let the down-voting continue.

Halle answered 20/9, 2008 at 15:6 Comment(1)
Again why not answer the question ? OP asked how to do this on a Mac he didn't ask how to run Mono on a bunch of other tech he probably already knows about.Accumulation
O
1

You can also run ASP.NET via NGINX - easy to install using: sudo brew install nginx

See installation tutorial: http://www.robertmulley.com/tutorial/nginx-install-and-setup-mac-os-x-mavericks/ See configuration steps for your app: http://www.mono-project.com/docs/web/fastcgi/nginx/ (Note: see my pull request as the fastcgi-mono-server4 should now be used - https://github.com/mono/website/pull/82/files)

Offen answered 4/1, 2015 at 18:37 Comment(0)
P
-2

Why use Mono on a Mac? Run Parallels, VMWare, or Boot Camp.

Protostele answered 20/9, 2008 at 14:55 Comment(3)
Why not?...OP asked how to get started, why not just answer the question or not at all?Accumulation
His problem appears to be running ASP.NET on a Mac, no more. He pointed out that he is new to Macs. He considered Linux, for one, but rejected it because it wasn't "the way Macs do things". And I am saying, if there is a standar way that a Mac runs ASP.NET, it's by delegating the task to Windows.Protostele
You're not reading the question...mono has a good ASP.NET implementation, that's what he wants to use on his Mac....natively. He didn't say he disregarded Linux as an OS, what he said was that the linux config steps were different hence the question.Accumulation

© 2022 - 2024 — McMap. All rights reserved.