是否可以在Mac的Visual Studio中开发ASP.NET MVC应用程序? [英] Is it possible to develop ASP.NET MVC applications in Visual Studio for Mac?

查看:409
本文介绍了是否可以在Mac的Visual Studio中开发ASP.NET MVC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我打算购买新的MacBook Pro(2017),并且目前正在实习的ASP.NET MVC(不是ASP.NET Core MVC)项目的Windows 10设备上工作,我想知道是否可以继续在Visual Studio for Mac中开发相同的项目.

换句话说:是否可以在Mac的Visual Studio中开发ASP.NET MVC应用程序?

我尝试使用Google进行搜索,但是我只能找到针对VS for Mac讨论的ASP.NET Core MVC项目.当前项目不是Core项目,而只是ASP.NET项目.

我真的不想在MacBook Pro或外部驱动器上安装Windows.

解决方案

您已经正确地推测出,不可能在不基于.NET Core或Mono的Mac上构建ASP.NET MVC项目.因此,如果您的项目当前针对.NET Framework 4.x上的ASP.NET,则您要么必须停留在Windows上:

  • 使用Bootcamp在Mac上运行Windows
  • 使用虚拟机在Mac中运行Windows
  • 使用Parallels Desktop或VMWare Fusion在Mac内运行Windows应用程序

或者您可以将应用程序转换为Mono或.NET Core,具体取决于您的依赖关系,这些依赖关系可能相对容易,非常困难或介于两者之间.

您还可以决定使用Visual Studio Team Services在Windows托管代理上构建代码并在yoru mac上编辑源代码,您必须放弃在本地编译或运行代码的能力.

您还可以决定租用" Azure中的虚拟机(也许您有用于此目的的MSDN积分?)和远程桌面,以在该计算机上运行项目.

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.

解决方案

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.

这篇关于是否可以在Mac的Visual Studio中开发ASP.NET MVC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆