Visual Studio 2017 for Mac Visual Studio 2017 for Mac


開發人員社群 | 系統需求 | 相容性 | 可散發的程式碼 | Xamarin | 部落格 | 服務Developer Community | System Requirements | Compatibility | Distributable Code | Xamarin | Blogs | Servicing


注意

如果您是從非英文語言版本的頁面存取此頁面,並想查看最新的內容,請瀏覽此版本資訊頁面的英文版本。If you are accessing this page from a non-English language version, and want to see the most up-to-date content, please visit this Release Notes page in English.

您可前往頁面底端的頁尾,切換語言設定。You can switch your language setting by going to the footer at the bottom of the page. 按一下 圖示並選取希望使用的語言。Click on the icon and select your desired language.


本文包含 Visual Studio 2017 for Mac 7.0 版之最新版本的相關資訊。This article contains information about the newest release for Visual Studio 2017 for Mac version 7.0.

使用 Visual Studio 2017 for Mac 建置下列項目的應用程式:行動裝置、Web 與使用 Xamarin 和 .NET Core 的雲端,以及使用 Unity 的遊戲。Use Visual Studio 2017 for Mac to build apps for mobile, web, and the cloud with Xamarin and .NET Core, as well as games with Unity.

Download Visual Studio 2017 for Mac

若要深入了解 Visual Studio 2017 for Mac,請參閱 Mac 系統需求Mac 平台目標及相容性To learn more about Visual Studio 2017 for Mac, see Mac System Requirements and Mac Platform Targeting and Compatibility.

若要深入了解其他相關下載,請參閱下載頁面。To learn more about other related downloads, see the Downloads page.

意見反應Feedback

請提供您的意見!We’d love to hear from you! 您可以透過 Visual Studio for Mac IDE 本身右上角的回報問題選項來回報問題。You can report a problem via the Report a Problem option in the upper right hand corner of the Visual Studio for Mac IDE itself. 您可在開發人員社群入口網站追蹤您的意見反應。You can track your feedback in the Developer Community portal. 如需建議,請透過 UserVoice 告訴我們。For suggestions, let us know through UserVoice.


發行日期︰2017 年 6 月 2 日 - Visual Studio for Mac 7.0.1.24Release Date: June 02, 2017 - Visual Studio for Mac 7.0.1.24

此版本修正了一些 Bug 和記憶體流失問題。This release fixes a number of bugs and memory leaks.

Android SDK ManagerAndroid SDK Manager

  • 已修正︰SDK 授權未正確包裝。Fixed: SDK License is not wrapping correctly.
  • 已修正:[取消] 按鈕未將標籤變更回 [安裝更新]。Fixed: Cancel Button does not change label back to Install Updates.
  • 已修正︰解除安裝 SDK 工具的最新組建時,所有 SDK 工具都會解除安裝。Fixed: On uninstalling latest build of SDK Tools, all SDK tools are uninstalled.
  • 已修正︰能夠在進行更新時修改元件。Fixed: Able to modify components while updates are in progress.
  • 已修正︰因為權限問題,無法從獨立安裝程式使用下載的 SDK 工具。Fixed: Cannot use downloaded SDK tools from standalone installer due to permission issues.
  • 已修正︰無法安裝先前移除的元件。Fixed: Not possible to install a previously removed component.
  • 已修正︰無法安裝 SDK 工具 25.2.5。Fixed: SDK Tools 25.2.5 fail to install.

其他問題Other issues

  • 已修正︰使用並排文件視窗還原文件時的問題。Fixed: Issue with restoring documents with side by side document windows.
  • 已修正︰具有 .NETStandard/new csproj 格式可攜式程式庫的目前內容中沒有名稱 'InitializeComponent'。Fixed: The name 'InitializeComponent' does not exist in the current context with .NETStandard/new csproj format portable library.
  • 已修正︰Android 部署在發行模式中失敗且未顯示訊息。Fixed: Android deployment is failing silently in release mode.
  • 已修正︰快速檢修未執行任何動作。Fixed: Quick Fix doesn't do anything.
  • 已修正︰無法在 [編輯參考] 對話方塊中移除參考。Fixed: Removing a Reference in the Edit References Dialog does not work.
  • 已修正︰將 iOS Forms PCL App 上傳至測試雲端的建置步驟失敗,發生「未知的 MSBuild 失敗」。Fixed: Uploading iOS Forms PCL app to Test Cloud fails build step with "Unknown MSBuild Failure”.
  • 已修正︰無法在 .Net Core 應用程式中檢查變數。Fixed: Can not inspect variables in .Net core applications.
  • 已修正︰F# 偵錯命令顯示在所有檔案中。Fixed: F# debugging commands show up in all files.
  • 已修正:F# Xamarin Forms 範本未還原套件。Fixed: F# Xamarin Forms template doesn't restore packages.
  • 已修正︰偵錯 .NET Core 應用程式時若選取執行緒,呼叫堆疊會消失。Fixed: Call Stack disappears when a thread selection is made while debugging .NET Core application.
  • 已修正︰按住 Shift 鍵和向下鍵會連續選取超過檢視區的文字。Fixed: Holding the shift and the down keys continues to select text past the viewport.
  • 已修正︰還原套件時 UI 遭到鎖定。Fixed: UI lockup while restoring packages.
  • 已修正︰編輯器未呈現完整文字。Fixed: Editor doesn't render the full text.
  • 已修正︰載入方案後,使用 Apple 事件開啟檔案時發生檔案開啟順序問題。Fixed: File open ordering issue after solution load when using Apple events to open files.
  • 已修正︰重新命名檔案以符合類別名稱刪除了檔案。Fixed: Renaming a file to match class name deleted the file.
  • 已修正︰FooButton_Clicked 處理常式完成未產生方法虛設常式。Fixed: FooButton_Clicked handler completion does not generate method stub.
  • 已修正︰分割畫面導致功能表項目變成停用。Fixed: Split screen causes menu items to become disabled.

Visual Studio for Mac 的新功能What's New in Visual Studio for Mac

核心功能Core Functionality

Visual Studio for Mac 有您想要從現代 IDE 獲得的所有項目,包括功能完整的原始檔編輯器、程式碼搜尋和瀏覽、功能強大的偵錯工具、可自訂的工作區、Git 整合,以及豐富的擴充系統。Visual Studio for Mac has everything you would expect from a modern IDE, including a full-featured source editor, code search and navigation, a powerful debugger, a customizable workspace, Git integration, and a rich extension system.

其他功能包括:Other features include:

  • Roslyn C# IntelliSense、重構、分析器和程式碼修正。Roslyn-based C# IntelliSense, refactoring, analyzers, and code fixes.
  • NuGet 套件管理。NuGet-based package management.
  • Visual Studio 相容的專案格式。Visual Studio compatible project format.
  • MSBuild 建置引擎。MSBuild build engine.
  • 整合式單元測試。Integrated unit testing.
  • 預設支援 F#。Support for F# out-of-the-box.

.NET Core 支援.NET Core Support

.NET Core 是一個應用程式的建立平台,這些應用程式可在 Windows、Linux 和 Mac 上執行。.NET Core is a platform for creating applications that you can run on Windows, Linux, and Mac. Visual Studio for Mac 支援載入、建立、執行和偵錯 .NET Core 專案。Visual Studio for Mac provides you with support for loading, creating, running, and debugging .NET Core projects.

若要執行 .NET Core 專案,應該下載和安裝 .NET Core SDK。In order to run .NET Core projects the .NET Core SDK should be downloaded and installed.

.NET Core 支援包括:.NET Core support includes:

  • C# 和 F# IntelliSense。C# and F# IntelliSense.
  • 適用於主控台、程式庫和 Web 應用程式的 .NET Core 專案範本。.NET Core project templates for console, library, and web applications.
  • 完整偵錯支援,包括中斷點、呼叫堆疊、監看式視窗等等。Full debugging support, including breakpoints, call stack, watch window, etc.
  • NuGet PackageReferences 和 MSBuild 還原。NuGet PackageReferences and MSBuild-based restore.
  • 整合式單元測試支援,可使用 .NET Core SDK 隨附的 Visual Studio Test Platform 來執行和偵錯測試。Integrated unit testing support for running and debugging tests with the Visual Studio Test Platform that is included with the .NET Core SDK.
  • 從舊 project.json 格式進行移轉。Migration from old project.json format.

Web 工具Web Tooling

Visual Studio for Mac 新增 HTML、CSS 和 JSON 檔案的新 Web 工具支援。Visual Studio for Mac adds new web tooling support for HTML, CSS and JSON files.

HTMLHTML

  • HTML 新 範本。New HTML template.
  • 改良的智慧縮排和格式化。Improved smart indent and formatting.
  • 改良的顏色標示。Improved colorization.
  • 改良的 IntelliSense。Improved Intellisense.
  • 程式碼摺疊功能 (必須予以啟用)。Code folding (must be enabled).
  • 解除美化命令。Unminify command.
  • 改良的程式碼範本 (程式碼片段)。Improved Code Templates (snippets).
  • 使用 <div> 括住選取範圍。Surround selection with <div>.
  • 上/下選項會上/下移動選取的文字。Option up/down moves selected text up/down.

CSSCSS

  • 改良的智慧縮排和格式化。Improved smart indent and formatting.
  • 改良的顏色標示。Improved colorization.
  • 改良的 IntelliSense。Improved IntelliSense.
  • 程式碼摺疊功能。Code folding.
  • 多個程式碼範本 (程式碼片段)。Many Code Templates (snippets).
  • 上/下選項會上/下移動選取的文字。Option up/down moves selected text up/down.

JSONJSON

  • 具有 schemastore.org 存取權的結構描述選擇器。Schema picker with access to schemastore.org.
  • 透過結構描述的驗證。Validation from schema.
  • 透過結構描述的 IntelliSense。IntelliSense from schema.
  • 改良的智慧縮排和格式化。Improved smart indent and formatting.
  • 改良的顏色標示。Improved colorization.
  • 註解/取消註解。Comment/uncomment.
  • 引號插入和括號對稱。Quote injection and brace matching.
  • 上/下選項會上/下移動選取的文字。Option up/down moves selected text up/down.

XamarinXamarin

Xamarin 的第一級支援可讓您開發 Android、macOS、iOS、tvOS 和 watchOS 的豐富原生體驗。First-class support for Xamarin allows you to develop rich native experiences for Android, macOS, iOS, tvOS, and watchOS. Xamarin.Forms 跨平台應用程式可協助您在 Android、iOS 與 macOS 之間共用 XAML UI 程式碼,而不限制原生功能的存取權。Xamarin.Forms cross-platform applications help you share XAML-based UI code between Android, iOS, and macOS without limiting access to native functionality.

包括:This includes:

  • 建置、部署、偵錯和程式碼剖析。Building, deployment, debugging, and profiling.
  • iOS 和 Android 的拖放 UI 設計工具。Drag-and-drop UI designers for iOS and Android.
  • Xamarin Forms 的即時預覽。Live preview for Xamarin Forms.
  • .NET Standard 相容的架構。.NET Standard compatible framework.
  • 原生 API 的繫結。Bindings to native APIs.

多平台應用程式範本Multiplatform App Templates

多平台 Xamarin.Forms 應用程式原生應用程式專案範本現在提供快速的方法,讓您建立多平台行動應用程式和其雲端後端。The Multiplatform Xamarin.Forms App and the Native App project templates now provide you a quick way to create a multiplatform mobile app and its cloud backend.

這些範本會建立多個專案︰透過共用專案共用程式碼的 Xamarin.iOS 應用程式專案和 Xamarin.Android 應用程式專案,以及實作應用程式後端服務的 .NET Core Web API 專案 (圖 1)。These templates create multiple projects: a Xamarin.iOS app project and a Xamarin.Android app project that share code via a shared project, and a .NET Core Web API project that implements a back-end service for the apps (Figure 1).

Debugging with .NET Core

*(圖 1) 使用 .NET Core 進行偵錯*
Debugging with .NET Core
*(Figure 1) Debugging with .NET Core*

將 ASP.NET Core Web 應用程式發行至 Azure App ServicesPublishing ASP.NET Core Web Apps to Azure App Services

您可以將 ASP.NET Core Web 應用程式發行至 Azure App Services (圖 2)。It is possible to publish your ASP.NET Core web apps to Azure App Services (Figure 2).

Publish to Azure content menu

*(圖 2) 發行至 Azure 內容功能表*
Publish to Azure content menu
*(Figure 2) Publish to Azure Content Menu*

若要發行 Web 應用程式,請從 [Solution Pad](方案板) 或 [專案] 功能表中選取 [Publish | Publish to Azure](發行 | 發行至 Azure) 命令。To publish your web app, select the Publish | Publish to Azure command from the Solution Pad or from the Project menu. 然後,選擇您想要部署至其中的 [應用程式服務],或建立新的 Azure App Service (圖 3)。Then choose the App Service you wish to deploy to, or create a new Azure App Service (Figure 3). 發行輸出將會記錄到 [發行] 輸出板,並在專案的 [屬性] > [PublishProfiles] 下方建立發行設定檔。Output from the publishing will be logged to a Publish output pad and a publishing profile will be created under Properties > PublishProfiles in the project.

Publish a new app service

*(圖 3) 發行新的應用程式服務*
Publish a new app service
*(Figure 3) Publish a New App Service*

專案中所定義的所有發行設定檔都會顯示為 [發行] 功能表內的選項,以讓您再次進行部署,而不需要再次選取 [應用程式服務]。All publish profiles defined in the project will be shown as options within the Publish menu so that you can deploy again without having to select the App Service a second time.

多處理序偵錯Multi-Process Debugging

專案的「專案回合組態」可以指定用於執行您專案的選項和引數。Projects have Project Run Configurations which specify options and arguments for running your project. 工具列中的下拉式清單可讓您檢視和變更目前使用中的回合組態。A dropdown in the toolbar lets you view and change the current active Run Configuration.

Visual Studio for Mac 的 [Solution Run Configurations](方案回合組態) 視窗可允許一次啟動「多個」專案。Visual Studio for Mac's Solution Run Configurations window allows multiple projects to be launched at once. 您可以在 [Solution Options](方案選項) 對話方塊中建立方案回合組態。You can create solution run configurations in the Solution Options dialog. 這十分適合偵錯行動裝置應用程式如何與其後端服務互動。This is very useful for debugging how a mobile app interacts with its backend service.

TextMate 套件組合TextMate Bundles

Visual Studio for Mac 支援 TextMate 語言套件組合,可用來新增:Visual Studio for Mac has support for TextMate language bundles, which you can use to add:

  • 編輯器色彩佈景主題。Editor color themes.
  • 程式碼片段。Code snippets.
  • 新語言、啟用醒目提示和基本 IntelliSense 的文法。Grammars for new languages, enabling highlighting, and basic IntelliSense.

您可以在 [喜好設定] > [文字編輯器] > [Language Bundles] (語言套件組合) 中新增 TextMate 套件組合。You can add TextMate bundles in Preferences > Text Editor > Language Bundles.

iOSiOS

音訊單元精靈Audio Unit Wizard

新的 [音訊單元延伸模組精靈] (圖 4) 會新增 3 個選項來自訂音訊單元專案範本的 plist。The new Audio Unit Extension wizard (Figure 4) adds 3 options to customize the Audio Unit project template's plist.

  • 音訊單元類型Audio Unit Type
    • 檢測Instruments
    • GeneratorGenerator
    • 作用Effect
    • 音樂效果Music effect
  • 子類型代碼︰只能有 4 個字元。Subtype Code: has to be 4 characters exactly.
  • 製造商代碼︰只能有 4 個字元。Manufacturer Code: has to be 4 characters exactly.

Audio Unit Wizard

*(圖 4) 音訊單元精靈*
Audio Unit Wizard
*(Figure 4) Audio Unit Wizard*
watchOS 延伸模組精靈watchOS Extension Wizard

在 Xcode 8.3 中,從 Intents 延伸模組 (Siri) 開始,Apple 已引進 watchOS 延伸模組 (與 iOS 延伸模組類似)。In Xcode 8.3, Apple introduced watchOS extensions (similar to the iOS ones), starting with the Intents Extension (Siri).

[watchOS 延伸模組精靈] (圖 5) 已更新成支援 watchOS 延伸模組,而且我們現在有專屬的 Intents 延伸模組範本。The watchOS Extension wizard (Figure 5) has been updated to support watchOS extensions, and we now have a dedicated Intents Extension template.

watchOS extension wizard

*(圖 5) watchOS 延伸模組精靈*
watchOS extension wizard
*(Figure 5) watchOS Extension Wizard*
其他改進和 Bug 修正Other Improvements and Bug Fixes
  • 我們現在可在自動完成視窗中處理 DeprecatedObsoleted 屬性。We now handle Deprecated and Obsoleted attributes in autocompletion window. 這可讓 Xamarin.iOS 的已過時和已取代的 API 顯示為刪除線。This allows Xamarin.iOS obsoleted and deprecated APIs to be shown as struck through.
  • 部署裝置時會顯示進度列。We show a progress bar when deploying to device. 這對 watchOS 特別有用This is especially useful for watchOS. (需要 Xamarin.iOS 10.5.0.323+)(Requires Xamarin.iOS 10.5.0.323+).
  • 我們使用 Xamarin.iOS 中已知的 OS 版本填入部署目標下拉式清單。We use known OS versions from Xamarin.iOS to populate the deployent target dropdowns.
    兩項優點是我們可以提供給您每個應用程式延伸模組類型的確切最小版本,以及根據 Xcode 來避免顯示 Xamarin.iOS「尚未」支援的 OS 版本。Two advantages are that we can give you the exact minimum version for each App Extensions type, as well as avoid showing OS versions, based on Xcode, that Xamarin.iOS does not yet support.

Mac/iOS API 問題分析器Mac/iOS API Issue Analyzer

  • 在觸發分析器時,修正重複的標記。Fix duplicated marker when analyzer is triggered.
  • 從屬性取得「訊息」(架構中說明 API 為何遭取代/已過時的資訊部分),並將該資訊附加至不同的可用性訊息。Get the "message" (piece of information in the framework explaining why the API is deprecated/obsolete) from the attribute and append that information to the different availability messages.
  • 已更新所有可用性訊息,以改善清晰度。Updated all availability messages to improve clarity.
  • 改善清晰度的方式是在可用性訊息中使用符號名稱,即從:Improved clarity by using the symbol's name in the availability message, changed from:
    API Usage Issue: this API requires iOS 10.0 or later
    變更為:to:
    'MyMethod' is only available on iOS 10.0 or newer

AndroidAndroid

  • 新的 SDK 管理員:Visual Studio for Mac 中包含其專屬的 Android SDK 管理員 (圖 6)。New SDK Manager - Visual Studio for Mac includes its own Android SDK manager (Figure 6).

Android SDK Manager window

*(圖 6) Android SDK Manager*
Android SDK Manager window
*(Figure 6) Android SDK Manager*
  • 將您的專案部署至裝置或模擬器,現在是透過 /t:Install msbuild 目標完成。Deploying your project to device or emulator is now done via the /t:Install msbuild target. Visual Studio for Mac 之前使用其專屬內部邏輯將應用程式部署至裝置,但現在使用可從終端機使用或在 Windows 上用於 Visual Studio 的相同一般目標。Previously Visual Studio for Mac would use its own internal logic for deploying applications to devices but now it uses same common targets that you can employ from Terminal, or that are used in Visual Studio on Windows. 此其中一個優點是現在有更好的記錄檔可用來診斷部署問題。One of the benefits of this is that there are now better logs available to diagnose deployment issues.

  • class-parse 現在是新繫結專案的預設值。The default for new binding projects is now class-parse. 它不需要 JVM 即可以直接剖析 Java 位元組程式碼。It can parse Java bytecode directly wihout the need for a JVM. 您現在可以從包含偵錯符號的 Java 位元組程式碼中擷取參數名稱。You now have the ability to extract parameter names from Java bytecode which contains debug symbols. 例如,以 javac -g 編譯的位元組程式碼。For example, bytecode compiled with javac -g. class-parse 也不會「略過」繼承自或包含無法解析類型成員的類別。class-parse also doesn't "skip" classes which inherit from, or contain, members of unresolvable types.

協助工具選項Accessibility

  • 這版的 Visual Studio for Mac 支援 Voice Over 這類的輔助技術。This version of Visual Studio for Mac contains support for assistive technologies such as Voice Over. 透過這些技術都可以存取使用者介面的許多組件,例如編輯器與方案總管。Many parts of the user interface, such as the editor and solution explorer, have been made accessible through these technologies. 不過,未來版本仍然不斷追求進一步的改進。However, it is still a work in progress and futher improvements will be made in future releases. 您可以透過 [協助工具] 喜好設定,或透過輸入下列命令列,來啟用協助工具功能:The accessibility features can be enabled either through the Accessibility preferences or through the commandline by entering:

    defaults write com.microsoft.visual-studio com.monodevelop.AccessibilityEnabled 1


Visual Studio 2017 for Mac 版本資訊歷程記錄Visual Studio 2017 for Mac Release Notes History

Visual Studio 2017 for Mac 7.3 版的版本資訊Visual Studio 2017 for Mac version 7.3 Release Notes

Visual Studio 2017 for Mac 7.2 版的版本資訊Visual Studio 2017 for Mac version 7.2 Release Notes

Visual Studio 2017 for Mac 7.1 版的版本資訊Visual Studio 2017 for Mac version 7.1 Release Notes


頁面頂端
Top of Page