-->Top of Page -->
- Install Vs Code
- Download Visual Studio Code 2019
- Download Vs Code
- Microsoft Visual Studio For Mac C Drive
2019-8-28 这是 Visual Studio 2008 支持的最新 Visual C 服务包。 此服务包改进了响应能力、稳定性和性能。 注意此下载会安装 Visual Studio 2008 Service Pack 1 和 Microsoft.NET Framework 3.5 SP1。 下载 Microsoft Visual C 2008 Service Pack 1 可再发行程序. Visual Studio Code is a lightweight, cross-platform development environment that runs on Windows, Mac, and Linux systems. The Microsoft C/C for Visual Studio Code extension supports IntelliSense, debugging, code formatting, auto-completion. Visual Studio for Mac doesn't support Microsoft C, but does support.NET languages and cross-platform.
2019-10-22 I installed Microsoft Visual Studio 2017 on my Mac recently, hoping to use it to program in C. It appeared to install correctly, no errors occurred, but it seems to be missing support for C. 2019-12-13 Visual Studio 2019 for Mac 导览 Visual Studio 2019 for Mac tour 本文内容 Visual Studio for Mac 是 Mac 上的.NET 集成开发环境,可用于编辑、调试和生成代码,然后发布应用 。Visual Studio for Mac is a.NET integrated development environment on the Mac that can be used to edit, debug, and build code and then publish an app.
|Developer Community |System Requirements |Compatibility |Distributable Code |Documentation |Blogs |Servicing |
Visual Studio 2019 for Mac contains many new and exciting features and IDE productivity enhancements tosupport cross-platform desktop app development, cross-platform mobile development, Azure development, web and cloud development,and more. To try out Visual Studio 2019 for Mac, see the Downloads page.For more information about everything that's new in this release, see theVisual Studio 2019 for Mac release notes.
System Requirements
For information on the system requirements for installing and running the Visual Studio 2019 for Mac family of products, see the Visual Studio 2019 for Mac System Requirement page.
Platform Targeting
Visual Studio for Mac provides cutting-edge tools and technologies to create apps that take advantage of thelatest platform capabilities, for macOS, Android, iOS, tvOS, and watchOS, as well as web sites, services, and games.
Feature Summary
- Mobile app development
- Share code between Android and iOS with Xamarin
- Native iOS and Android UI designers
- Shared UI with Xamarin.Forms
- Protect Android code with Embedded Assemblies
- Visualize and debug apps with Xamarin Inspector *
- Profile your apps with Xamarin Profiler *
- Cross-platform 'desktop' development
- macOS app development
- .NET Core development
- Web application development
- ASP.NET Core development
- HTML, CSS, JSON web editor tooling
- Cloud development
- ASP.NET Core WebAPI development
- Publish ASP.NET Core projects to Azure directly from the IDE
- Game development
- Unity game development
* Requires Visual Studio Enterprise for Mac
Visual Studio for Mac does not support Windows client projects like Windows Forms, WPF, or UWP.
Visual Studio 2019 for Mac Support for Android Development
Visual Studio 2019 for Mac enables you to build native Android apps using Xamarin and C#. Download microsoft visual studio mac. You can also use Unity to build Android games.
You can use the Android SDK Manager to easily obtain the Android SDK and Android API levels you'd like for development.You can download additional API levels separately using the Android SDK Manager.
For more information, see Android development with Visual Studio for Mac.
Visual Studio 2019 for Mac Support for iOS Development
Visual Studio 2019 for Mac enables you to build native iOS apps using Xamarin and C#. You can also use Unity to build iOS games.
For more information, see iOS development with Visual Studio for Mac.
Visual Studio 2019 for Mac Support for macOS Development
Visual Studio 2019 for Mac enables you to build console applications and Cocoa (desktop) applications for macOS.
For more information, see macOS development with Visual Studio for Mac.
Visual Studio 2019 for Mac Support for ASP.NET Core Development
ASP.NET Core is an open-source and cross-platform framework for building modern cloud based internet connected applications, such as web apps and services, IoT apps, and mobile backends.
ASP.NET Core apps can be developed and debugged using Visual Studio 2019 for Mac, including the server-side code as well as client side HTML, CSS, and Javascript. They can be hosted on Windows, macOS, or Linux.
For more information, see .NET Core and to get started follow this hands-on lab.
Visual Studio 2019 for Mac Support for Unity Game Development
Visual Studio for Mac Tools for Unity is a free Visual Studio extension that turns Visual Studio for Mac into a powerful tool for developing cross-platform games and apps with the Unity platform.
For more information, see Visual Studio Tools for Unity and to get started follow this hands-on lab.
Other Platforms and Technologies
Visual Studio 2019 for Mac also supports the following platforms and technologies. For more information, seehttps://visualstudio.microsoft.com/vs/mac/.
- .NET Core 2.2. For more information see https://dot.net/core
- F#
- Web Development HTML5/CSS3 and JavaScript
Feedback and Suggestions
Use the Provide a Suggestion entry in Visual Studio for Mac's help menu or visit Visual Studio for Mac's suggestion page on Developer Community directly. From here you can add new requests or vote on existing ideas. To report a problem, follow these instructions.
Visual Studio for Mac 是 Mac 上的 .NET 集成开发环境,可用于编辑、调试和生成代码,然后发布应用 。Visual Studio for Mac is a .NET integrated development environment on the Mac that can be used to edit, debug, and build code and then publish an app.除了预期的功能(例如,标准编辑器和调试程序)外,Visual Studio for Mac 还包括编译器、代码完成工具、图形设计器和源代码管理,以简化软件开发过程。In addition to expected features, such as a standard editor and debugger, Visual Studio for Mac includes compilers, code completion tools, graphical designers, and source control to ease the software development process.
Visual Studio for Mac 支持许多与其 Windows 对应的文件类型相同的文件类型(例如
.csproj
、.fsproj
或 .sln
文件),并且支持 EditorConfig 等功能,这意味着可以使用最适合自己的 IDE。Visual Studio for Mac supports many of the same file types as its Windows counterpart, such as .csproj
, .fsproj
, or .sln
files, and supports features such as EditorConfig, meaning that you can use the IDE that works best for you.对于之前使用过 Windows 上的 Visual Studio 人的任何人来说,在创建、打开和开发应用时将不会觉得陌生。Creating, opening, and developing an app will be a familiar experience for anyone who has previously used Visual Studio on Windows.此外,Visual Studio for Mac 采用许多强大的工具,将它的 Windows 对应产品打造成十分强大的 IDE。In addition, Visual Studio for Mac employs many of the powerful tools that make its Windows counterpart such a powerful IDE.Roslyn 编译器平台用于重构和 IntelliSense。The Roslyn Compiler Platform is used for refactoring and IntelliSense.它的项目系统和生成引擎使用 MSBuild,它的源编辑器使用与 Windows 上的 Visual Studio 相同的基础。Its project system and build engine use MSBuild, and its source editor uses the same foundation as Visual Studio on Windows.对于 Xamarin 和 .NET Core 应用,使用的是相同的调试器引擎,对于 Xamarin.iOS 和 Xamarin.Android 使用的是相同的设计器。It uses the same debugger engines for Xamarin and .NET Core apps, and the same designers for Xamarin.iOS and Xamarin.Android.可以在 Visual Studio for Mac 中执行的操作What can I do in Visual Studio for Mac
Visual Studio for Mac 支持以下类型的开发:Visual Studio for Mac supports the following types of development:
- 使用 C#、F# 的 ASP.NET Core Web 应用程序,以及对 Razor 页面、JavaScript 和 TypeScript 的支持ASP.NET Core web applications with C#, F#, and support for Razor pages, JavaScript, and TypeScript
- 使用 C# 或 F# 的 .NET Core 控制台应用程序.NET Core console applications with C# or F#
- 使用 C# 的跨平台 Unity 游戏和应用程序Cross-platform Unity games and applications with C#
- 使用 C# 或 F# 和 XAML 的 Xamarin 中的 Android、iOS、tvOS 和 watchOS 应用程序Android, iOS, tvOS, and watchOS applications in Xamarin with C# or F# and XAML
- 使用 C# 或 F# 的 Cocoa 桌面应用Cocoa desktop apps in C# or F#
本文探讨了 Visual Studio for Mac 的各个部分,并简要介绍了使其成为一款用于创建这些应用程序的强大工具的部分功能。This article explores various sections of Visual Studio for Mac, providing a look at some of the features that make it a powerful tool for creating these applications.
IDE 导览IDE tour
Visual Studio for Mac 分为多个部分,用于管理应用程序文件和设置、创建应用程序代码以及进行调试。Visual Studio for Mac is organized into several sections for managing application files and settings, creating application code, and debugging.
入门Getting started
启动 Visual Studio 2019 for Mac 后,新用户可看到登录窗口。When you start Visual Studio 2019 for Mac, new users will see a sign-in window.使用 Microsoft 帐户登录以激活付费许可证(如果有)或链接到 Azure 订阅。Sign-in with your Microsoft account to activate a paid license (if you have one) or link to Azure subscriptions.可以按下“我稍后再执行此操作”,然后通过“Visual Studio”>“登录”菜单项登录 :You can press I'll do this later and sign in later via the Visual Studio > Sign in menu item:
然后,可以通过选择自己喜欢的键盘快捷方式来自定义 IDE:Visual Studio for Mac、Visual Studio、Visual Studio Code 或 Xcode:You'll then be given the option to customize the IDE by selecting your preferred keyboard shortcuts: Visual Studio for Mac, Visual Studio, Visual Studio Code, or Xcode:
登录用户将看到新启动窗口 ,其中显示了最近项目的列表,以及用于打开现有项目或创建新项目的按钮:Signed-in users will see the new start window, which shows a list of recent projects, and buttons to open an existing project or create a new one:
解决方案和项目Solutions and projects
下图显示加载了应用程序的 Visual Studio for Mac:The following image shows Visual Studio for Mac with an application loaded:
以下部分概述了 Visual Studio for Mac 中的主要区域。The following sections provide an overview of the major areas in Visual Studio for Mac.
Solution padSolution pad
Solution Pad 在解决方案中组织项目:The Solution Pad organizes the project(s) in a solution:
在此位置,源代码、资源、用户界面和依赖关系的文件被组织到特定于平台的项目中。This is where files for the source code, resources, user interface, and dependencies are organized into platform-specific Projects.
有关在 Visual Studio for Mac 中使用项目和解决方案的详细信息,请参阅项目和解决方案一文。For more information on using Projects and Solutions in Visual Studio for Mac, see the Projects and Solutions article.
程序集引用Assembly references
“引用”文件夹中提供每个项目的程序集引用:Assembly references for each project are available under the References folder:
使用“编辑引用” 对话框添加其他引用,双击“引用”文件夹或在其上下文菜单操作中选择“编辑引用” 便可显示该对话框:Additional references are added using the Edit References dialog, which is displayed by double-clicking on the References folder, or by selecting Edit References on its context menu actions:
有关在 Visual Studio for Mac 中使用引用的详细信息,请参阅管理项目中的引用一文。For more information on using References in Visual Studio for Mac, see the Managing References in a Project article.
依赖项/包Dependencies / packages
在应用中使用的所有外部依赖关系存储在“依赖关系”或“包”文件夹中,具体取决于所在的项目是 .NET Core 还是 Xamarin.iOS/Xamarin.Android 项目。All external dependencies used in your app are stored in the Dependencies or Packages folder, depending on whether you are in a .Net Core or Xamarin.iOS/Xamarin.Android project.通常以 NuGet 的形式提供这些内容。These are usually provided in the form of a NuGet.
Microsoft outlook database file mac. NuGet 是 .NET 开发最常用的程序包管理器。NuGet is the most popular package manager for .NET development.通过 Visual Studio 的 NuGet 支持,可以轻松地搜索包并将其添加到项目,再添加到应用程序。With Visual Studio's NuGet support, you can easily search for and add packages to your project to application.
若要将依赖关系添加到应用程序,请右键单击“依赖关系”/“包”文件夹,然后选择“添加包” :To add a dependency to your application, right-click on the Dependencies / Packages folder, and select Add Packages:
可在在项目中包括 NuGet 包一文中找到在应用程序中使用 NuGet 包的相关信息。Information on using a NuGet package in an application can be found in the Including a NuGet project in your project article.
源编辑器Source Editor
无论是采用 C#、XAML 还是 Javascript 编写,该代码编辑器都与 Visual Studio Windows 具有相同的核心组件,具有完全本机的用户界面。Regardless of if you're writing in C#, XAML, or Javascript, the code editor the shares the same core components with Visual Studio Windows, with an entirely native user interface.
这会引入以下一些功能:This brings some of the following features:
Install Vs Code
- 本机 macOS(基于 Cocoa)用户界面(工具提示、编辑器外观、边距修饰、文本渲染、IntelliSense)Native macOS (Cocoa-based) user interface (tooltips, editor surface, margin adornments, text rendering, IntelliSense)
- IntelliSense 类型筛选以及“显示导入项”IntelliSense type filtering and 'show import items'
- 支持本机文本输入Support for native text inputs
- RTL/BiDi 语言支持RTL/BiDi language support
- Roslyn 3Roslyn 3
- 多个插入点支持Multi-caret support
- 自动换行Word wrap
- 更新后的 IntelliSense UIUpdated IntelliSense UI
- 改进了“查找/替换”Improved find/replace
- 代码片段支持Snippet support
- 设置选定内容的格式Format selection
- 内联灯泡Inline lightbulbs
有关在 Visual Studio for Mac 中使用源编辑器的详细信息,请参阅源编辑器文档。For more information on using the Source Editor in Visual Studio for Mac, see the Source Editor documentation.
若要始终显示选项卡,可以固定这些选项卡。To keep tabs visible at all times, you can take advantage of pinning them.这可确保每次启动项目时,都将始终显示需要的选项卡。This ensures that every time you launch a project, the tab you need will always appear.若要固定选项卡,请将鼠标悬停在该选项卡上,并单击固定图标 :To pin a tab, hover over the tab and click the pin icon:
重构Refactoring
使用 Visual Studio for Mac,可通过以下两种实用方法来重构代码:上下文操作和源分析。Visual Studio for Mac provides two useful ways to refactor your code: Context Actions, and Source Analysis.可在重构一文中阅读更多相关信息。You can read more about them in the Refactoring article.
调试Debugging
Visual Studio for Mac 提供支持 .Net Core、.NET Framework、Unity 和 Xamarin 项目的调试器。Visual Studio for Mac has debuggers that support .NET Core, .NET Framework, Unity, and Xamarin projects.Visual Studio for Mac 使用 .NET Core 调试器和 Mono 软调试器,以便 IDE 跨所有平台调试托管代码。Visual Studio for Mac uses the .NET Core debugger and the Mono Soft Debugger, allowing the IDE to debug managed code across all platforms.有关调试的其他信息,请访问调试一文。For additional information on debugging, visit the Debugging article.
调试器包含丰富的可视化工具,可用于字符串、颜色、URL、大小、坐标和贝塞尔曲线等特殊类型。The debugger contains rich visualizers for special types such as strings, colors, URLs, as well as sizes, coordinates, and bézier curves.
有关调试器的数据可视化效果的详细信息,请访问数据可视化效果一文。For more information on the debugger's data visualizations, visit the Data Visualizations article.
版本控制Version control
Visual Studio for Mac 与 Git 和 Subversion 源控件系统集成。Visual Studio for Mac integrates with Git and Subversion source control systems.源控件下的项目用解决方案名称旁列出的分支表示:Projects under source control are denoted with the branch listed next to the Solution name:
Download Visual Studio Code 2019
如果文件有未提交的更改,文件在解决方案窗格中的图标上就会有注释,如下图所示:Files with uncommitted changes have an annotation on their icons in the Solution Pane, as illustrated in the following image:
有关在 Visual Studio 中使用版本控制的详细信息,请参阅版本控制一文。For more information on using version control in Visual Studio, see the Version Control article.