是否可以在 macOS 上使用 Visual Studio?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7148191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:20:06  来源:igfitidea点击:

Is it possible to use Visual Studio on macOS?

visual-studiomacos

提问by Priyank saxena

I want to install Visual Studio on macOS. Is this possible?

我想在 macOS 上安装 Visual Studio。这可能吗?

回答by vyedin

Yes! You can use the new Visual Studio for Mac, which Microsoft launched in November.

是的!您可以使用 Microsoft 于 11 月推出的全新 Visual Studio for Mac。

Read about it here: https://msdn.microsoft.com/magazine/mt790182

在此处阅读:https: //msdn.microsoft.com/magazine/mt790182

Download a preview version here: https://www.visualstudio.com/vs/visual-studio-mac/

在此处下载预览版:https: //www.visualstudio.com/vs/visual-studio-mac/

回答by aevanko

I recently purchased a MacBook Air (mid-2011 model) and was really happy to find that Apple officially supports Windows 7. If you purchase Windows 7 (I got DSP), you can use the Boot Camp assistant in OSX to designate part of your hard drive to Windows. Then you can install and run Windows 7 natively as if it were as Windows notebook.

我最近购买了 MacBook Air(2011 年中的型号),很高兴发现 Apple 正式支持 Windows 7。如果您购买了 Windows 7(我有 DSP),您可以使用 OSX 中的 Boot Camp 助手来指定您的部分硬盘驱动器到 Windows。然后,您可以像 Windows 笔记本一样本地安装和运行 Windows 7。

I use Visual Studio 2010 on Windows 7 on my MacBook Air (I kept OSX as well) and I could not be happier. Heck, the initial start-up of the program only takes 3 seconds thanks to the SSD.

我在 MacBook Air 上的 Windows 7 上使用 Visual Studio 2010(我也保留了 OSX),我很高兴。哎呀,由于 SSD,程序的初始启动只需 3 秒。

As others have mentions, you can run it on OSX using Parallels, etc. but I prefer to run it natively.

正如其他人提到的,您可以使用 Parallels 等在 OSX 上运行它,但我更喜欢在本机运行它。

回答by Sebastian Piu

I guess you can install it via Parallel or in any other Virtual machine with windows in it

我想您可以通过 Parallel 或任何其他带有 Windows 的虚拟机安装它

回答by Gelatin

No. Neither Visual Studio or the .NET framework will run on Mac OSX (although the latter is changing). However, if you want to write an application in a similar framework, you could use Monoand MonoDevelop.

不会。Visual Studio 或 .NET 框架都不会在 Mac OSX 上运行(尽管后者正在发生变化)。但是,如果您想在类似的框架中编写应用程序,则可以使用MonoMonoDevelop

回答by Delan Azabani

There is no native version of Visual Studio for Mac OS X.

没有适用于 Mac OS X 的 Visual Studio 的本机版本。

Almost all versions of Visual Studio have a Garbage ratingon Wine's application database, so Wine isn't an option either, sadly.

几乎所有版本的 Visual Studio 都对 Wine 的应用程序数据库进行了垃圾评级,因此很遗憾,Wine 也不是一个选项。

回答by statusphere

While Parallels is technically a VM it is capable of running games in high resolution at a high frame rate. If you run Parallels in Coherence mode it completely integrates Windows 7 into OS X and .Net framework is fully supported. So yes you can install Visual Studio on your Mac however the Apps you created would only run of windows computers unless they were web based.

虽然 Parallels 在技术上是一个虚拟机,但它能够以高帧率运行高分辨率游戏。如果您在 Coherence 模式下运行 Parallels,它会将 Windows 7 完全集成到 OS X 中,并且完全支持 .Net 框架。所以是的,您可以在 Mac 上安装 Visual Studio,但是您创建的应用程序只能在 Windows 计算机上运行,​​除非它们是基于 Web 的。

回答by Kurogani

Yes, you can! There's a Visual Studio for macs and there's Visual Studio Code if you only need a text editor like Sublime Text.

是的你可以!如果您只需要像 Sublime Text 这样的文本编辑器,可以使用 Visual Studio for mac 和 Visual Studio Code。