The best way to get started with configuring Mono for ASP.NET on Mac

I recently got access to a Mac. I am wondering if anyone has any tips / advice on configuring Mono on mac for developing and running ASP.NET? Most resources point to a Linux implementation, which tends to be very different from how a Mac does something. Any advice or recommendations would be helpful.

+7
mono macos
source share
5 answers

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

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

+9
source share

Since I first worked with mono osx , they added Cocoa # and Obj #, but the ASP.NET core was pretty solid (about 3 years ago). In fact, you can write web applications according to the book of the Ray and port them to IIS with little or no difficulty.

+2
source share

Honestly, if you want to run ASP.NET, you probably won't want to struggle with its launch through mono on MacOS. Intel-based Macintoshes can boot Windows, while Apple provides Windows drivers for its various devices as part of Boot Camp.

Alternatively, you can buy Parallels or VMWare Fusion for less than $ 100. I am using VMWare Fusion. There is also a version of Sun's Mac VirtualBox that is free, although I have never used it.

For MacOS (not .Net) development, you really should try Apple Xcode . It's free. It focuses on Objective-C, although Python, Ruby, and other languages โ€‹โ€‹can be used to develop native Mac applications.


Edit 9/22: Sorry, neither you nor Kev found this a helpful answer. Let me try to expand a bit: the Macintosh has a long history of software that is ported from Windows, applying the theme to make GUI elements look like Macs, but are otherwise happy with the ports at the lowest cost. Such software never behaves like a real Mac application: it does not respond to AppleEvents, it will not be scriptable, it only handles cross-platform clipboard formats, etc.

You can do whatever you want, including running ASP.NET using mono. If this is for your personal use, knock yourself out. However, if you see this as a way to offer your web product on the Mac, I urge you to reconsider. The Mac market has largely rejected such products. You will get some sales, but you wonโ€™t get anything like this for an application that behaves like a native Mac application.

Now let's continue the vote.

+1
source share

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

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

+1
source share

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

-2
source share

All Articles