简体   繁体   中英

ASP.NET MVC 5 on Mac OS X

I want to learn how to build websites using the Microsoft ASP.NET framework on a Mac running OS X 10.10.5. I will be following along with an online course that uses ASP.NET MVC 5. All of the tutorials I have read so far say to use Homebrew 's aspnet/dnx repo to install ASP.NET. However, according to the GitHub page:

"This repository is obsolete and no longer used or maintained."

A link on the page redirects to .Net Core

So, my question is: how do I install ASP.NET MVC 5 on my Mac, not .NET Core?

Thanks!

If you want to start developing for .NET (including ASP.NET MVC and related technologies) on OSX, you'll need to look towards .NET Core . There are instructions there on how to install it and how to write code for it. There are good examples linked at the bottom of the page.

Please be aware that, as of this time, the related OSX technologies are not full released, so prepare for some hiccups along the way (though...it's getting better!).

You want to use https://www.microsoft.com/net/core#macos

Follow the examples here once you're set up: https://docs.asp.net/en/latest/getting-started.html

dnx is deprecated as mentioned on their GitHub page.

This repository is obsolete and no longer used or maintained.

Also, for what it's worth - dnx/dnvm were CLI tooling used to build/bootstrap .net applications. They were used during the beta/rc versions of what is now known as dotnet core. The new https://github.com/dotnet/cli has replaced dnx.

Nothing is better than using the OS with the full capabilities as Windows to work with ASP.NET or Windows Forms (really beautiful on Windows) as a student I've been trying to get this things on mac but is kind of difficult and as future engineer, if I have to get complex operations to do something, due, something is wrong, engineering solutions is to make the easiest possible solution and that one is using Windows. Less paint in the ass.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM