Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 577
MikeJ Avatar asked Sep 20 '08 14:09

MikeJ


People also ask

How do I run Mono on my Mac?

Installing Mono on macOSVisit the download page to find the latest macOS package. Run it and follow the instructions there, you can either get a basic runtime, or a complete runtime plus a software development kit.

Does Mono work on M1 Mac?

Visual Studio 2022 for Mac has parted ways with the Mono runtime in the just-published Preview 5, now running on . NET 6. The dumping of Mono comes as the dev team works to adopt a fully native macOS UI and run the IDE natively on Apple's ARM-based M1 processor, the latter of which is key to adopting .

Can you do ASP.NET on Mac?

ASP.NET Core runs on the latest evolution of the . NET platform and runtime. It's been tuned for fast performance, factored for small install sizes, and reimagined to run on Linux and macOS, as well as Windows.

Does ASP.NET support Mono?

Supported VersionsMono supports ASP.NET 2.0, ASP.NET AJAX and a handful of 3.5 controls.


2 Answers

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.

like image 65
miguel.de.icaza Avatar answered Sep 21 '22 00:09

miguel.de.icaza


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.

like image 44
Purfideas Avatar answered Sep 21 '22 00:09

Purfideas