安裝 Visual Studio 2019 for MacInstall Visual Studio 2019 for Mac

若要開始在 macOS 上開發原生、跨平台的 .NET 應用程式,請遵循下方步驟安裝 Visual Studio 2019 for Mac。To start developing native, cross-platform .NET apps on macOS, install Visual Studio 2019 for Mac following the steps below.

需求Requirements

  • 具有 macOS High Sierra 10.12 或更高版本的 Mac。A Mac with macOS High Sierra 10.12 or above.

若要建置適用於 iOS 或 macOS 的 Xamarin 應用程式,您還需要:To build Xamarin apps for iOS or macOS, you'll also need:

  • Xcode 10.0 或以上版本。Xcode 10.0 or above. 通常建議使用最新穩定版本。The latest stable version is usually recommended.
  • Apple ID。An Apple ID. 如果您還沒有 Apple 識別碼,可以在 https://appleid.apple.com 建立一個新識別碼。If you don't have an Apple ID already you can create a new one at https://appleid.apple.com. 安裝及登入 Xcode 時需要有 Apple 識別碼。It's necessary to have an Apple ID for installing and signing into Xcode.

安裝指示Installation instructions

  1. Visual Studio for Mac 下載頁面下載安裝程式。Download the installer from the Visual Studio for Mac download page.

  2. 下載完成後,按一下 VisualStudioforMacInstaller.dmg 裝載安裝程式,然後按兩下箭號標誌加以執行:Once the download is complete, click the VisualStudioforMacInstaller.dmg to mount the installer, then run it by double-clicking the arrow logo:

    按一下大型箭號,開始安裝Click the large arrow to begin installation

  3. 您可能會看到要從網際網路下載應用程式的相關警告。You may be presented with a warning about the application being downloaded from the Internet. 按一下 [開啟]。Click Open.

  4. 等候安裝程式檢查您的系統:Wait while the installer checks your system:

    安裝程式會檢查您系統的已安裝元件The installer checks your system for installed components

  5. 系統會出現要求您確認隱私權和授權條款的警示。An alert will appear asking you to acknowledge the privacy and license terms. 請前往連結並加以閱讀;如果您同意即可按 [繼續]:Follow the links to read them, then press Continue if you agree:

    前往隱私權和條款的連結;如果您同意,請繼續執行Follow the links to the privacy and terms, then continue if you agree

  6. 即會顯示可用工作負載的清單。The list of available workloads is displayed. 選取您想要使用的項目:Select the ones you wish to use:

    選擇您想要安裝的選擇性工作負載功能Choose which optional workload features you would like to install

  7. 選取完成之後,請按 [安裝] 按鈕。After you have made your selections, press the Install button.

  8. 安裝程式會顯示下載和安裝 Visual Studio for Mac 的進度,並顯示選取的工作負載。The installer will display progress as it downloads and installs Visual Studio for Mac and the selected workloads. 系統可能會提示您輸入密碼,授與安裝所需的權限。You might be prompted to enter your password to grant the privileges necessary for installation.

如果您在公司環境安裝時發生網路問題,請檢閱在防火牆或 Proxy 後方安裝指示。If you have network trouble while installing in a corporate environment, review the installing behind a firewall or proxy instructions.

深入了解版本資訊中的變更。Learn more about the changes in the release notes.

Note

如果您在原始安裝期間選擇不安裝平台或工具 (在步驟 #6 中取消選取它),當您稍後想要新增元件時,必須再次執行安裝程式。If you chose not to install a platform or tool during the original installation (by unselecting it in step #6), you must run the installer again if you wish to add the components later.

將 Visual Studio for Mac 安裝在防火牆或 Proxy 伺服器後方Install Visual Studio for Mac behind a firewall or proxy server

若要將 Visual Studio for Mac 安裝在防火牆後方,某些端點必須設為可供存取,才能允許下載您軟體所需的工具和更新。To install Visual Studio for Mac behind a firewall, certain endpoints must be made accessible in order to allow downloads of the required tools and updates for your software.

將您的網路設定為允許存取下列位置:Configure your network to allow access to the following locations:

後續步驟Next steps

安裝 Visual Studio for Mac 可讓您開始撰寫應用程式的程式碼。Installing Visual Studio for Mac allows you to start writing code for your apps. 以下指示提供您下一步撰寫及部署專案的逐步指示。The following guides are provided to guide you through the next steps of writing and deploying your projects.

iOSiOS

  1. Hello, iOSHello, iOS
  2. 裝置部署 (英文) (在裝置上執行您的應用程式)。Device Provisioning(To run your application on device).

AndroidAndroid

  1. 使用 Xamarin Android SDK 管理員 (英文)Using the Xamarin Android SDK Manager
  2. Android SDK 模擬器 (英文)Android SDK Emulator
  3. 設定您的裝置以進行開發 (英文)Set Up Device for Development

.NET Core 應用程式、ASP.NET Core Web 應用程式、Unity 遊戲開發.NET Core apps, ASP.NET Core web apps, Unity game development

對於其他工作負載,請參閱工作負載頁面。For other Workloads, refer to the Workloads page.

另請參閱See also