Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to develop ASP.NET MVC applications in Visual Studio for Mac?

Since I am planning to buy a new MacBook Pro (2017) and currently working on a Windows 10-device on a ASP.NET MVC (Not ASP.NET Core MVC) project for my internship, I was wondering if it is possible to continue developing the same project in Visual Studio for Mac.

To put it in other words: Is it possible to develop ASP.NET MVC applications in Visual Studio for Mac?

I tried to Google this, but I could only find ASP.NET Core MVC projects being discussed for VS for Mac. The current project is NOT a Core project, but just an ASP.NET project.

I really don't want to install Windows either on my MacBook Pro or on an external drive.

like image 643
user7410216 Avatar asked Dec 01 '17 19:12

user7410216


People also ask

Can ASP NET MVC run 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.

Can I develop in asp net in Mac?

Visual Studio for Mac makes it easy to develop your app's service with its support for the latest ASP.NET Core Web development platform. ASP.NET Core runs on the latest evolution of the . NET platform and runtime.

Can I build .NET apps on Mac?

NET Core is that you can run it on multiple platforms and architectures. So you can build an app that will run on Windows, but also on Linux, macOS and on different architectures like x86 and ARM. This is perfect for lots of scenarios, including desktop applications. You can learn about other reasons for using .

Can you develop C# on a Mac?

Visual Studio 2022 for Mac includes nearly everything you'll need for .NET 7 development, from responsive C# web UIs in Blazor to event-driven solutions using Azure Functions.


1 Answers

As you've correctly surmised, it's not possible to build ASP.NET MVC projects on the Mac that aren't based on .NET Core or Mono. So if your project is currently targetting ASP.NET on .NET Framework 4.x, the you'll either have to stay on Windows:

  • Use Bootcamp to run Windows on your Mac
  • Use a Virtual Machine to run Windows inside Mac
  • Use Parallels Desktop or VMWare Fusion to run windows applications inside your Mac

Or you can convert your application over to Mono or .NET Core, depending on your dependencies that may be relatively easy, or very hard or anywhere in between.

You could also decide to use Visual Studio Team Services to build your code on a Windows Hosted agent and edit the sources on yoru mac, you'd have to forego the ability to compile or run your code locally.

You can also decide to "rent" a virtual machine in Azure (maybe your have MSDN credits you could use for this purpose?) and remote desktop to that machine to work on your project.

like image 155
jessehouwing Avatar answered Sep 20 '22 11:09

jessehouwing