Visual Studio 2017 版本 15.3 版本資訊 Visual Studio 2017 version 15.3 Release Notes

開發人員社群 | 系統需求 | 相容性 | 可散發的程式碼 | 授權條款 | 部落格 | 已知問題Developer Community | System Requirements | Compatibility | Distributable Code | License Terms | Blogs | Known Issues


注意

這不是 Visual Studio 2017 的最新版本。This is not the latest version of Visual Studio 2017. 若要查看 Visual Studio 2017 最新版本的資訊,請瀏覽目前的版本資訊頁面。To see information on the latest version of Visual Studio 2017, please visit the current Release Notes page.

提示

您可以在此頁面的底部切換頁面語言。You can switch the page language at the bottom of this page. 按一下Click the 圖示,搜尋您的語言,或從可用語言的清單中選取。 icon, search for your language, or select from the list of available languages.


本文包含 Visual Studio 2017 15.3 版的相關版本資訊。This article contains information about releases for Visual Studio 2017 version 15.3.

意見反應Feedback

請提供您的意見!We’d love to hear from you! 您可以從安裝程式或 Visual Studio IDE 本身的回報問題選項來回報問題。You can report a problem from the Report a Problem option in either the installer or the Visual Studio IDE itself. 必須提供The Feedback Icon 圖示位在右上角。icon is located in the upper right hand corner. 您可在開發人員社群入口網站追蹤您的意見反應。You can track your feedback in the Developer Community portal. 如需建議,請透過 UserVoice 網站告訴我們。For suggestions, let us know through the UserVoice site.

發行記錄Release History

提示

您可以在 Visual Studio 2017 發行節奏文件中深入了解版本發佈的方式。You can learn more about how we ship our releases in the Visual Studio 2017 Release Rhythm document.

下載 Visual Studio 2017 的目前版本Download the Current Release of Visual Studio 2017

按一下這個按鈕以下載最新版的 Visual Studio 2017。Click the button to download the latest version of Visual Studio 2017. 如需指示,請參閱安裝 Visual Studio 2017For instructions, see Install Visual Studio 2017.

注意:安裝套件的大小會依據您目前的 Visual Studio 組態而有所不同。Note: Installation package size will vary depending on your current Visual Studio configuration.


發行日期:2017 年 9 月 19 日 - Visual Studio 2017 15.3.5 版Release Date: September 19, 2017 - Visual Studio 2017 version 15.3.5

在 2017 年 9 月 19 日版本中已修正的問題Issues Fixed in September 19, 2017 Release

這些是此版本中已解決的客戶回報問題:These are the customer-reported issues addressed in this version:

  • 導入 Apple Xcode 9、iOS 11、tvOS 11 和 watchOS 4 的支援Introduced support for Apple's Xcode 9, iOS 11, tvOS 11 and watchOS 4

發行日期:2017 年 9 月 12 日 - Visual Studio 2017 15.3.4 版Release Date: September 12, 2017 - Visual Studio 2017 version 15.3.4

在 2017 年 9 月 12 日版本中已修正的問題Issues Fixed in September 12, 2017 Release

這些是此版本中已解決的客戶回報問題:These are the customer-reported issues addressed in this version:


發行日期:2017 年 8 月 29 日 - Visual Studio 2017 15.3.3 版Release Date: August 29, 2017 - Visual Studio 2017 version 15.3.3

2017 年 8 月 29 日發行版本中修正的問題Issues Fixed in August 29, 2017 Release

這些是此版本中已解決的客戶回報問題:These are the customer-reported issues addressed in this version:


發行日期:2017 年 8 月 22 日 - Visual Studio 2017 15.3.2 版Release Date: August 22, 2017 - Visual Studio 2017 version 15.3.2

2017 年 8 月 22 日發行版本中修正的問題Issues Fixed in August 22, 2017 Release

這些是此版本中已解決的客戶回報問題:These are the customer-reported issues addressed in this version:

此版本中包含其他修正:Additional fixes included in this release:

  • Service Fabric 工具更新。Service Fabric tooling update.
  • Visual Studio 升級失敗,原因是 AccessDenied 在 VSIX 安裝/解除安裝期間失敗。Visual Studio upgrade fails with AccessDenied failure during VSIX install / uninstall.
  • Unity 版本 <= 5.5 的專案產生問題。Project generation issue on Unity version <= 5.5.
  • 已連結檔案的傾印擷取。Dump capture for linked files.
  • 因迴圈最佳化的無訊息錯誤 codegen。Silent bad codegen due to loop optimization.

發行日期:2017 年 8 月 18 日 - Visual Studio 2017 版本 15.3.1Release Date: August 18, 2017 - Visual Studio 2017 version 15.3.1

本版已修正的問題Issues Fixed in this Release

這些是此版本中已解決的客戶回報問題:These are the customer-reported issues addressed in this version:


發行日期:2017 年 8 月 14 日 - Visual Studio 2017 15.3 版Release Date: August 14, 2017 - Visual Studio 2017 version 15.3

摘要:此版本的新功能Summary: What's New in this Release

  • 協助工具改善會讓 Visual Studio 比以往更容易存取。Accessibility Improvements make Visual Studio more accessible than ever.
  • Azure Function 工具包含在 Azure 開發工作負載中。Azure Function Tools are included in the Azure development workload. 您可以在本機開發 Azure Function 應用程式,並直接發行至 Azure。You can develop Azure Function applications locally and publish directly to Azure.
  • 您現在可以在 Visual Studio 2017 中建置於 Azure Stack 和政府雲端上執行的應用程式,例如「中國的 Azure」。You can now build applications in Visual Studio 2017 that run on Azure Stack and government clouds, like Azure in China.
  • 我們已改善 .NET Core 2.0 的 .NET Core 開發支援,以及 Windows Nano Server 容器。We improved .NET Core development support for .NET Core 2.0, and Windows Nano Server containers.
  • Visual Studio IDE 中,我們已改善「登入」和「身分識別」、起始頁、「輕量型解決方案載入」和安裝程式 CLI。In Visual Studio IDE, we improved Sign In and Identity, the start page, Lightweight Solution Load, and setup CLI. 我們也已改善重構、程式碼產生和快速動作。We also improved refactoring, code generation and Quick Actions.
  • Visual Studio 編輯器基於新的 [藍色 (更高對比)] 佈景主題和改善的螢幕助讀程式支援而具有更好的協助工具。The Visual Studio Editor has better accessibility due to the new ‘Blue (Extra Contrast)’ theme and improved screen reader support.
  • 我們已改善偵錯工具和診斷體驗。We improved the Debugger and diagnostics experience. 這包含點選以設定下一個陳述式。This includes Point and Click to Set Next Statement. 我們也已重新整理變數視窗中的所有巢狀值,並進行「開啟資料夾」偵錯改善。We've also refreshed all nested values in variable window, and made Open Folder debugging improvements.
  • Xamarin 具有可編輯應用程式權利的新獨立編輯器。Xamarin has a new standalone editor for editing app entitlements.
  • 已更新開啟資料夾和 CMake 工具體驗。The Open Folder and CMake Tooling experience is updated. 您現在可以使用 CMake 3.8。You can now use CMake 3.8.
  • 我們已改善 IntelliSense 引擎,以及 C++ 語言服務的專案和程式碼精靈。We made improvements to the IntelliSense engine, and to the project and the code wizards for C++ Language Services.
  • Visual C++ 工具組支援命令提示字元初始化目標。Visual C++ Toolset supports command-prompt initialization targeting.
  • 我們已新增使用 C# 7.1 語言功能的能力。We added the ability to use C# 7.1 Language features.
  • 您可以與 Visual Studio 更新分開安裝 TypeScript 版本。You can install TypeScript versions independent of Visual Studio updates.
  • 我們已新增 Node 8 偵錯支援。We added support for Node 8 debugging.
  • NuGet 已新增支援 NuGet 警告和錯誤的新 TFM (netcoreapp2.0、netstandard2.0、Tizen)、Semantic Versioning 2.0.0 和 MSBuild 整合。NuGet has added support for new TFMs (netcoreapp2.0, netstandard2.0, Tizen), Semantic Versioning 2.0.0, and MSBuild integration of NuGet warnings and errors.
  • Visual Studio 現在將 .NET Framework 4.7 開發工具提供給包括 4.7 執行階段的已支援平台。Visual Studio now offers .NET Framework 4.7 development tools to supported platforms with 4.7 runtime included.
  • 我們已在 Application Insights 搜尋工具的搜尋查詢結果中新增相關事件叢集。We added clusters of related events to the search query results in the Application Insights Search tool.
  • 我們已在 Redgate SQL 搜尋中改善 SQL Server 2016 的語法支援。We improved syntax support for SQL Server 2016 in Redgate SQL Search.
  • 我們已在 [已連線的服務] 中啟用 Microsoft Graph API 支援。We enabled support for Microsoft Graph APIs in Connected Services.

本版修正的前幾個主要問題Top Issues Fixed in this Release

我們重視開發人員社群的意見反應。The Developer Community spoke and we listened. 此清單提供此版本中修正之 10 個最高投票的問題。This list provides the 10 highest voted issues fixed in this release.

The Developer Community Portal 深入了解 Visual Studio 2017 版本 15.3 中已解決的客戶回報問題 Learn more about customer-reported issues addressed in Visual Studio 2017 version 15.3.


詳細資料:此版本的新功能Details: What's New in this Release

協助工具 Accessibility

此版本處理 1,700 多個協助工具問題,並讓 Visual Studio 比以往更容易存取。We addressed over 1,700 accessibility issues in this release and made Visual Studio more accessible than ever. 您可以存取新的 [藍色 (更高對比)] 佈景主題 (圖 1)。You have access to the new “Blue (Extra Contrast)” theme (Figure 1). 如果您不想要或不需要全高對比模式,此佈景主題會提供您比一般「藍色」佈景主題更高的對比。This theme offers you more contrast than the regular "Blue" theme if you don't want or need the full High Contrast mode.

Blue (Extra Contrast) theme
(圖 1) 藍色 (更高對比) 佈景主題(Figure 1) Blue (Extra Contrast) theme

使用 Visual Studio 編輯器,您可以透過新的 [顯示程式碼行註釋] 命令集,在文字裝飾之間進行探索及巡覽。With Visual Studio Editor, you can discover and navigate between text adornments via the new "Show Line Annotations" command set. 您可以在 [編輯器操作功能表]\ (圖 2) 上找到新的功能。You can find the new feature on the Editor context menu (Figure 2). 如需詳細資訊,請參閱 Visual Studio 編輯器一節。See the Visual Studio Editor section for more information.

Show Line Annotations
(圖 2) 顯示程式碼行註釋(Figure 2) Show Line Annotations

如需更多的協助工具消息,請瀏覽 Accessibility improvements in Visual Studio 2017 version 15.3 (Visual Studio 2017 版本 15.3 中的協助工具改善) 部落格文章。For more accessibility news, visit the Accessibility improvements in Visual Studio 2017 version 15.3 blog post.


Azure Stack 與 Azure Government 雲端 Azure Stack and Azure Government Clouds

在 Visual Studio 中使用所有相同的工具 (例如 Cloud Explorer、「已連線的服務」和 ASP.NET Publish) 來連線 Azure Stack 和政府雲端。Use all the same tools in Visual Studio — like Cloud Explorer, Connected Services and ASP.NET Publish — to connect Azure Stack and government clouds. 選取現有政府雲端 (例如「中國的 Azure」 (圖 3)),或輸入組織之 Azure Stack 的探索端點。Pick an existing government cloud, like Azure in China (Figure 3), or enter the discovery endpoint for your organization’s Azure Stack.

Azure Stack
(圖 3) Azure Stack(Figure 3) Azure Stack

Azure Function 工具 Azure Function Tools

  • 「Azure 開發」工作負載中包含了 C# Azure Functions 的開發工具。Tools for developing C# Azure Functions are included as part of the “Azure development” workload.
  • 您可以使用先行編譯的 C# 類別庫和指定觸發程序的屬性來開發 Azure 函式。You can develop Azure functions by using pre-compiled C# class libraries, and attributes to specify triggers.
  • 您可在本機開發電腦上建置、執行及偵錯。You can build, run, and debug on your local development machine.
  • 您可以從 Visual Studio 直接發佈至 Azure。You can publish directly to Azure from Visual Studio.

如需詳細資訊,請參閱 Visual Studio 2017 Tools for Azure Functions 部落格文章。For more details, see the Visual Studio 2017 Tools for Azure Functions blog post.


.NET Core 和 ASP.NET Core .NET Core and ASP.NET Core

  • 透過個別下載來安裝 .NET Core 2.0 SDK,以便在 Visual Studio 2017 版本 15.3 中開發 .NET Core 2.0。You can install .NET Core 2.0 SDK via a separate download to enable .NET Core 2.0 development in Visual Studio 2017 version 15.3. Visual Studio 現提供多個 .NET Core SDK 的並存支援。Visual Studio now provides side-by-side support of multiple .NET Core SDKs. 使用 SDK 的最新公開版本進行開發時,您可以試驗 .NET Core SDK 的最新每日組建。You can experiment with the latest daily build of the .NET Core SDK while you develop with the latest public release of the SDK. 如需詳細資料,請參閱 .NET 部落格See .NET blog for details.
  • 使用 Visual Basic 支援,您現在可以在 Visual Basic 中建立 .NET Core 主控台應用程式,以及 .NET Core 和 .NET Standard 類別庫。With Visual Basic support, you now have the ability to create .NET Core console applications, and .NET Core, and .NET Standard class libraries in Visual Basic.
  • .NET Framework 和 .NET Standard/Core Interop 讓您從 .NET Framework 專案參考 .NET Core/.NET Standard 程式庫,反之亦然。.NET Framework and .NET Standard/Core interop allows you to refer to .NET Core/.NET Standard libraries from .NET Framework projects and vice versa. 不需要手動新增 Interop NuGet 套件,Visual Studio 會自動為您執行這項作業。No need to manually add interop NuGet packages – Visual Studio does this for you automatically.
  • 多目標架構支援增強功能,可讓您建置多目標架構 (TFM) 的專案,並在 [偵錯]/[執行] 中使用 TFM 選擇器,選擇要執行的 TFM。Multiple target framework support enhancement allows you to build your project for multiple target frameworks (TFM), and use the TFM picker in Debug/Run to pick the TFM to run.
  • 我們已新增 Windows Nano Server 映像支援,將 ASP.NET Core 應用程式置入容器當作 Windows Nano Server 映像。We added Windows Nano Server image support for containerizing ASP.NET Core apps as Windows Nano Server images. 您現在可以選取 Windows Nano Server 作為容器平台。You can now select Windows Nano Server as the container platform. 對於 ASP.NET Core 專案,您可以在 [檔案] -> [新增專案] 下執行這項作業。You can do this under File->New Project for ASP.NET Core projects. 對於您現有的專案,您可以使用 [專案操作功能表] 進行新增。For your existing projects, it can be added using the Project Context Menu.
  • 本機 IIS 支援:您現在可以從 Visual Studio 使用 IIS 進行開發及偵錯。Local IIS support: You can now develop and debug using IIS from Visual Studio.
  • .NET Framework 上的 ASP.NET Core - 在此版本中,當您建立以完整 .NET Framework 為目標的 ASP.NET Core 專案 (僅限 Windows) 時,將會使用 [One ASP.NET] (一個 ASP.NET) 對話方塊中的下拉式清單。ASP.NET Core on .NET Framework – When you create an ASP.NET Core project targeting the full .NET Framework (Windows only), you will use the dropdown on the One ASP.NET dialog.
  • 可以啟用 .NET Standard、.NET Core 和 ASP.NET Core 專案的 Live Unit Testing 功能。The Live Unit Testing feature can be enabled for your .NET Standard, .NET Core, and ASP.NET Core projects.

Service Fabric 工具Service Fabric Tools

此版本提供新的具狀態 ASP.NET Core 專案範本、Service Fabric 2.5 和 2.6 SDK (及對應執行階段) 的支援,以及數個 Bug 修正。This release provides a new stateful ASP.NET Core project template, support for both 2.5 and 2.6 SDK's (and corresponding runtimes) of Service Fabric, as well as several bug fixes.

持續傳遞工具Continuous Delivery Tools

我們已將這些功能從 CD4VS (Microsoft Continuous Delivery Tools for Visual Studio) 延伸模組移至 Visual Studio:We moved these features from the CD4VS (Microsoft Continuous Delivery Tools for Visual Studio) extension into Visual Studio:

  • 為含有以 Azure App Service 為目標之 ASP.NET 專案的方案設定持續傳遞。Configure continuous delivery for solutions that contain ASP.NET projects targeting an Azure App Service.
  • 為含有以 Azure App Service 為目標之 ASP.NET Core 專案的方案設定持續傳遞。Configure continuous delivery for solutions that contain ASP.NET Core projects targeting an Azure App Service.

Visual Studio IDE Visual Studio IDE

  • 我們在 [說明] 功能表下方新增 [鍵盤協助工具] 功能表命令。We added the Keyboard Accessibility menu command under the "Help" menu. 此命令提供您協助工具祕訣和訣竅相關線上文件的捷徑。This provides you with a shortcut to online documention about Accessibility Tips and Tricks.
  • 診斷系統會透過資訊列通知您可能涉及 Visual Studio 意外終止的延伸模組 (圖 4)The diagnostic system informs you via the InfoBar about extensions that might have been involved in an unexpected termination of Visual Studio (Figure 4). 資訊列提供此終止的相關資訊,並會詢問您是否要停用涉及的延伸模組。The InfoBar provides this information about the termination and asks if you would like to disable the suspected extension.
InfoBar notification
(圖 4) 資訊列通知(Figure 4) InfoBar notification
  • 在開啟資料夾的情況下,您可以透過專用的 UI 來選取所需的偵錯工具。In open folder scenarios, you can select your desired debugger via dedicated UI.
  • 我們已經停止在不同 Visual Studio 2017 並存安裝之間共用特定設定 (例如工具視窗配置)。We’ve stopped sharing certain settings, like tool window layout, between different side-by-side installations of Visual Studio 2017. 如需詳細資訊,請參閱在 Visual Studio 中同步處理設定文件。For more information, see the Synchronize your settings in Visual Studio documentation.
  • 我們已修正 Visual Studio 在其主視窗顯示前看似已停止回應的「隱藏視窗」BUG。We fixed the "hidden window" bug that made Visual Studio appear to hang before its main window appeared.
  • 我們已增加可點選目標區域,讓您更輕鬆地關閉通知提示。We increased the clickable target area to make it easier to dismiss notification tips.

.NET IDE.NET IDE

  • 我們已新增數個新的重構和快速檢修,例如「解決合併衝突」、「新增 null 檢查」、「新增參數」等。We added several new refactorings and quick fixes, like "Resolve merge conflicts", "Add null checks", "Add parameter", and many more. 請參閱 Visual Studio 中的重構、程式碼產生和快速動作頁面,查看完整清單。Take a look at our Refactoring, Code Generation and Quick Actions in Visual Studio page to see the full list.
  • 我們建議 IntelliSense 中的變數名稱,以協助您快速命名變數,例如 Person personWe suggest variable names in IntelliSense to help you name your variables quickly, for example, Person person.
  • [編輯後繼續] 支援 C# 7.0 功能 (區域函式除外)。Edit and Continue supports C# 7.0 features (except local functions).
  • 我們已新增在 .NET Core 專案資料夾外使用檔案萬用字元的支援。We added support for file globbing outside of your project folder for .NET Core.

登入和身分識別Sign In and Identity

我們已修正帳戶選擇器控制項,讓「重新輸入認證」的運作更可靠。We fixed the account picker control so "Re-enter credentials" works more reliably. 在某些情況下,帳戶選擇器會在重新輸入認證時清除帳戶。In some cases, the account picker would clear accounts upon re-entering credentials.

起始頁Start Page

我們已在起始頁 MRU「釘選」上增加可點選目標區域。We increased the clickable target area on Start Page MRU “pins”. 您可以更輕鬆地將您關心的項目釘選到 MRU 頂端。It's easier to pin items you care about to the top of the MRU.

輕量型解決方案負載Lightweight Solution Load

  • 我們已提高建置速度和穩定性。We increased build speed and stability.
  • 我們已減少載入的專案數目。We reduced the number of loaded projects.
  • 已新增選項 (圖 5),讓 Visual Studio 決定最適合您的解決方案。We added a new option (Figure 5) that allows Visual Studio to decide what’s best for your solution.
Lightweight Solution Load Options
(圖 5) 輕量型解決方案載入選項(Figure 5) Lightweight Solution Load Options
  • 我們已新增檔案搜尋結果解決方案,來搜尋延遲的專案,而不只是載入的專案。We added file search results solutions to search for deferred projects, instead of just loaded projects.
    • 當您載入專案時,所有現有的搜尋都會重新整理以新增進展結果。When you load a project, all existing searches are refreshed to add progression results.
    • 這有一些限制:There are limits to this:
      • 搜尋不會延伸到檔案內,而且不會包含漸進式結果,例如類別、方法等等。Search does not extend within the file and does not include progressive results, i.e. classes, methods, etc.
      • 屬於專案的檔案會顯示為一般清單。Files that belong to a project are shown as a flat list. 當檔案屬於資料夾時,則會顯示相對路徑,而不只是檔案名稱。When files belong to a folder, the relative path is shown instead of just the file name.
      • 搜尋檢視中的檔案項目沒有操作功能表。There are no context menus for the file items in the search view.
  • [移至所有] 和 [移至檔案] 會顯示工作區中外部項目的內容。GoTo All and GoTo Files show content from external items in the workspace.
  • 我們已改善使用「輕量型解決方案載入」之專案中的批次建置。We improved Batch build in projects that use Lightweight Solution Load.

安裝程式Setup

  • Visual Studio 安裝程式現在支援不超過 150% 的高 DPI 縮放層級。Visual Studio Installer now supports high-DPI scaling at levels less than 150%.
  • vswhere.exe 可執行檔已經更新,會根據預設排除預覽執行個體,在命令列包含 --prerelease 時,將其包含在內。The vswhere.exe executable file has been updated to exclude preview instances by default, and includes them when --prerelease is included on the command line.
  • CLI 可以處理 --verify--fix--cleanCLI is able to handle --verify, --fix and --clean.
    • --verify 會驗證配置,並在承載遺漏和無效時通知您。--verify verifies layout and informs you of missing and invalid payloads.
    • --fix 會驗證配置,並重新下載遺漏或無效的套件。--fix verifies the layout and re-downloads packages that are either missing or invalid.
    • --clean 會刪除已淘汰的套件,並讓您將配置修剪為特定版本範圍。--clean deletes obsolete packages and allows you to trim layout to a specific version range.
  • 我們已新增詳細資料,以將每個磁碟機的網路大小影響顯示在安裝詳細資料頁面中We added details that show the net size impact per drive to the installation details page. (圖 6)(Figure 6).
Drive Sizes listed in the Installer
(圖 6) 安裝程式中所列的磁碟機大小(Figure 6) Drive Sizes listed in the Installer

Visual Studio 編輯器 Visual Studio Editor

  • 新增大量錯誤時,手動捲動和選取不再困難。Manual scroll and selection are no longer difficult when a large numbers of errors are being added.
  • 新增了「藍色」佈景主題的新變數,這是專為需要在 Visual Studio 編輯器中有更高對比的使用者所提供。We added a new variant of the "Blue" theme, which caters specifically to users who need more contrast in the Visual Studio Editor. 如果您不想要或不需要全高對比模式,此佈景主題會提供您比一般「藍色」佈景主題更高的對比。This theme offers you more contrast than the regular "Blue" theme if you don't want or need the full High Contrast mode. 您可以透過 [工具] -> [選項] -> [環境] -> [一般] 來試用這項功能。You can try it out via Tools -> Options -> Environment -> General.
  • 如果您使用螢幕助讀程式,則現在可以使用新的 [顯示程式碼行註釋] 命令,在裝飾之間巡覽。If you use a screen-reader, you can now navigate between adornments by using the new "Show Line Annotations" command.
    • 若要啟用,請在 [編輯器操作功能表] 上選取 [顯示程式碼行註釋](Ctrl+KCtrl+M)。To activate, select "Show Line Annotations" (Ctrl+K, Ctrl+M) on the Editor context menu. 快顯視窗會出現在編輯器中,描述該行上的裝飾。A popup will appear in the editor describing the adornments on that line.
    • 使用 Ctrl+KCtrl+ Right/Left Arrow 以巡覽該行上的多個註釋。Navigate through multiple annotations on the line using Ctrl+K, Ctrl+ Right/Left Arrow.
    • 您也可以透過 [顯示結構] 命令 Ctrl+KCtrl+G,輕鬆找到程式碼的內容。You can also easily find context in code through the "Show Structure" command Ctrl+K, Ctrl+G. 這會在插入號所在的快顯視窗中顯示程式碼的結構化內容,而且可由螢幕助讀程式報讀。This shows the structural context of the line of code in the popup where the caret is located, and can be read by the screen reader.

偵錯和診斷 Debugging and Diagnostics

Visual Studio Team Services 符號伺服器的偵錯工具支援Debugger Support for Visual Studio Team Services Symbol Servers

  • 您可以從 Visual Studio Team Services 符號伺服器查詢並下載符號 (圖 7)You can query and download symbols (Figure 7) from Visual Studio Team Services Symbol Servers. 您可以使用 [工具] -> [選項]-> [偵錯工具] -> [符號] 頁面,選取 Visual Studio Team Services 符號路徑並新增至 Visual Studio 環境。You can select and add Visual Studio Team Services symbol paths to your Visual Studio environment using the Tools->Options->Debugger->Symbols page. 若要設定 Visual Studio Team Services 符號伺服器,請參閱 Use Symbol Server in Team Services (在 Team Services 中使用符號伺服器) 頁面。To set up a Visual Studio Team Services Symbol Server, see the Use Symbol Server in Team Services page.
Add VSTS Symbol Server
(圖 7) 新增 VSTS 符號伺服器(Figure 7) Add VSTS Symbol Server
  • 當您使用 [開始偵錯] (F5) 或 [附加至處理序] (Ctrl+Alt+P) 時,可在偵錯時支援 SetThreadDescription APIThe SetThreadDescription API is supported while debugging when you use Start Debugging (F5) or Attach to Process (Ctrl+Alt+P). 透過此 API 設定的執行緒名稱,現在會顯示在 [執行緒] 視窗和 [偵錯位置] 工具列的 [執行緒] 下拉式清單中。The thread names that are set via this API now show up in the Threads window and in the Thread dropdown in the Debug Location toolbar. 目前不受傾印偵錯的支援。This is not currently supported while dump debugging.
  • [輸出] 視窗現在會顯示 Windows 容器中執行之應用程式在偵錯時的主控台輸出。The Output Window now shows you the console output of an application running inside a Windows Container while debugging.
  • 我們為 Windows Nano Server 架構的 Windows 容器中所執行的 .NET Core 應用程式新增偵錯支援。We added new support for debugging .NET Core apps you run inside Windows Containers based on Windows Nano Server.

指向並按一下以設定下一個陳述式Point and Click to Set Next Statement

您可以在偵錯時按住 Ctrl 鍵,直到中斷點停止。You can hold down the Ctrl key while stopped at a breakpoint when debugging. 您的程式碼行旁的 Run to Click (執行到這裡) 圖示會變更為 [設定下一個陳述式] 功能 (圖 8)The Run to Click (Run execution to here) icon next to your line of code changes to “Set Next Statement” functionality (Figure 8). 按一下此圖示以將黃色指令指標移至該行,並設定偵錯工具要執行的下一個陳述式。Click the icon to move the yellow instruction pointer to that line and set the next statement for the debugger to execute.

Click to set Next Statement
(圖 8) 按一下以設定下一個陳述式(Figure 8) Click to set Next Statement

Windows PDB 檔案格式 (可攜式 PDB 除外) 現在支援來源連結。Source Link is now supported for Windows PDB file format (in addition to Portable PDBs). 支援的編譯器可以將必要資訊放在 Windows PDB 檔案格式中,而偵錯工具可以根據該資訊來擷取來源檔案。Compilers that support it can put the necessary information in the Windows PDB file format and the debugger can retrieve source files based on that information.

開啟資料夾偵錯Open Folder Debugging

您可以使用我們的新開啟資料夾範本,更輕鬆地進行偵錯。We have made your debugging experience easier when you use our new templates for Open Folder. 如果您已安裝核心偵錯工具,我們的新範本可讓您選擇要使用的偵錯工具類型。If you have the core debugger installed, our new templates allow you to choose the type of debugger you want to use. 您可以從方案總管之 [偵錯並啟動設定] 功能表選項的 [選取偵錯工具] 對話方塊中,選擇 [Managed]、[原生] 或 [混合]。Managed, Native, or Mixed can be chosen from the "Select a Debugger" dialog in the "Debug and Launch Settings" menu option in Solution Explorer. 如果您已安裝 C++ MDD 體驗 (Android C++、Linux 偵錯等等),現在會在相同的功能表選項中,看到使用 GDB 附加和啟動的 MinGW 和 Cygwin 支援選項。If you have a C++ MDD experience installed (Android C++, Linux Debugging, etc.), you now see options for MinGW and Cygwin support by using GDB for attach and launch within the same menu option.

在變數視窗中重新整理所有巢狀值Refresh All Nested Values in Variable Windows

當您針對 [監看式]、[自動變數] 和 [區域變數] 視窗中某個變數或運算式的父節點按一下 [重新整理] 按鈕時,也會重新整理並重新評估該節點子系的所有可見變數和運算式。When you click the refresh button for the parent node of a variable or expression in the Watch, Autos, and Locals windows, all visible variables and expressions that are children of that node also refresh and re-evaluate. 您不再需要針對每個子系按一下 [重新整理] 按鈕。You no longer need to click on the refresh button for each of the children.

.NET Core 的 Live Unit Testing 支援Live Unit Testing Support for .NET Core

您可以啟用 .NET Standard、.NET Core 和 ASP.NET Core 專案的 Live Unit Testing 功能。You can enable the Live Unit Testing feature for .NET Standard, .NET Core, and ASP.NET Core projects.


Xamarin Xamarin

  • 屬性頁與應用程式資訊清單重新設計 - 我們持續讓 iOS 和 Android 專案的屬性頁更容易使用。Property Pages & App Manifest Redesigns - We have continued our work on making property pages for iOS and Android projects easier to use.
  • 新的權利編輯器 - 我們已新增獨立編輯器來編輯應用程式權利。New Entitlements Editor - We added a standalone editor for editing app entitlements.

如需變更的完整概觀,請務必查看 developer.xamarin.com 以取得詳細資訊。For a complete overview of changes, be sure to check out developer.xamarin.com for more details.


開啟資料夾及 CMake 工具Open Folder and CMake Tools

  • 我們已改善在資料夾與方案之間切換的穩定性。We improved stability for toggling between folder and solution.
  • 開啟資料夾擴充項可以將原始檔控制圖示新增至您的資料夾。Open folder extenders can add a source control icon to your folders. 這可讓您在方案總管中快速查看檔案的原始檔控制狀態,目前由 SVN 實作。This allows you to quickly see the source control state of your files in Solution Explorer, which is currently implemented by SVN.
  • Visual Studio 中的 CMake 體驗會升級至 CMake 3.8The CMake experience in Visual Studio is upgraded to CMake 3.8.
  • 我們已為使用 MinGW 或 Cygwin 的 C++ 專案改善「開啟資料夾」的編輯、建置和偵錯支援。We improved editing, building, and debugging support in "Open Folder" for C++ projects that use MinGW or Cygwin.
  • 我們新增了在 "CppProperties.json" 及 "CMakeSettings.json" 中定義全域及組態專用環境變數的支援。We added support to define global and configuration-specific environment variables in "CppProperties.json" and "CMakeSettings.json". 這些環境變數可供 "launch.vs.json" 中定義的偵錯組態和 "tasks.vs.json" 中的工作取用。These environment variables can be consumed by debug configurations defined in "launch.vs.json" and tasks in "tasks.vs.json".
  • 我們已增強 Visual Studio 的 CMake 工具,提供您 CTest 整合的支援。We enhanced CMake tools for Visual Studio to provide you with support for CTest integration.
  • 您現在可以使用 CMake 的 Ninja 產生器,輕鬆以 64 位元平台為目標,透過 IntelliSense 建置、偵錯及編輯。You can now use the CMake's Ninja generator to easily target 64-bit platforms, build, debug, and edit with IntelliSense.

C++ 語言服務 C++ Language Services

[實驗] 選項下的 [啟用更快的專案載入] 已重新命名為 [啟用專案快取],並移至 [VC++ 專案設定] 下。The “Enable Faster Project Load” option under Experimental options has been renamed “Enable Project Caching” and moved under VC++ Project Settings. 舊的屬性值不會傳播至新的選項。The old property value is not propagated to the new option.

IntelliSense 引擎IntelliSense Engine

  • C++ IntelliSense 支援比對批次編譯器版本的新 C++17 功能。C++ IntelliSense supports new C++17 features matching the batch compiler release.
  • 在 C++ 編輯器中新增了 [重新掃描檔案] 的操作功能表選項,可在 IntelliSense 無法正常運作時使用。Added context menu option in C++ editor to Rescan File, which can be used if IntelliSense is not working correctly.
  • 降低針對 C++ 程式碼執行 [尋找所有參考] 或 [呼叫階層] 時的 CPU 使用量。Reduced CPU usage when running Find All References or Call Hierarchy for C++ code.
  • 我們已改善整體的 C++ IntelliSense 引擎體驗。We've improved the overall C++ IntelliSense engine experience.

專案和程式碼精靈Project and Code Wizard

  • 已重寫數個專案和程式碼精靈的簽章對話方塊樣式。We have rewritten several project and code wizards in the signature dialogue style.
  • [新增類別] 會直接啟動 [新增類別精靈]。Add Class launches the Add Class wizard directly. 之前在這裡的所有其他項目都會在 [新增] > [新增項目] 下提供。All of the other items that were previously here are available under "Add > New Item".
  • Win32 專案會在 [新增專案] 對話方塊的 [Windows Desktop] 類別下。Win32 projects are under the Windows Desktop category in the New Project dialog.
  • Windows 主控台和傳統型應用程式範本現在會建立專案,而不顯示精靈。The Windows Console and Desktop Application templates now create the projects without displaying a wizard. 相同類別下有新的 [Windows Desktop 精靈],顯示與之前相同的選項。There's a new Windows Desktop Wizard under the same category that displays the same options as before.

Visual C++ 工具組和程式庫 Visual C++ Toolset and Libraries

  • Visual Studio 開發人員命令提示字元 (和 Visual C++ 命令提示字元) 已新增支援透過 -vcvars_ver=14.0 引數初始化以 Visual C++ 2015 工具組 (v140) 為目標的命令提示字元環境。The Developer Command Prompt for Visual Studio (and the Visual C++ Command Prompt) have added support for initializing a command-prompt environment targeting the Visual C++ 2015 Toolset (v140) via the -vcvars_ver=14.0 argument.
  • Visual C++ 可轉散發套件檔案目錄已重新命名為 Microsoft.VC141.*,以符合工具組的版本 (14.1x)。Visual C++ Redist file directories have been renamed to Microsoft.VC141.* to match versioning with the toolset (14.1x). 在 Visual Studio 2017 RTM 中,這些目錄錯誤地命名為 Microsoft.VC150.*。In Visual Studio 2017 RTM, these directories were incorrectly named Microsoft.VC150.*.
  • Visual C++ 檔案版本和目錄 (Visual Studio 2017 15.3):Visual C++ File Version and Directories (Visual Studio 2017 15.3) :
    • VC++ 工具組檔案版本:14.11.25506.0 或 19.11.25506.0VC++ Toolset File Version : 14.11.25506.0 or 19.11.25506.0
    • VC++ 工具目錄:VC\Tools\MSVC\14.11.25503 (預覽版本中的目錄位置已鎖定)VC++ Tools Directory : VC\Tools\MSVC\14.11.25503 (directory location was locked in a Preview release)
    • VC++ 可轉散發套件目錄 [a]:VC\Redist\MSVC\14.11.25325 (MFC 和 OneCore 除外的所有執行階段)VC++ Redist Directory [a] : VC\Redist\MSVC\14.11.25325 (All runtimes except for MFC and OneCore)
    • VC++ 可轉散發套件目錄 [b]:VC\Redist\MSVC\14.11.25415 (MFC 和 OneCore 執行階段)VC++ Redist Directory [b] : VC\Redist\MSVC\14.11.25415 (MFC and OneCore runtimes)

C# 7.1 語言支援 C# 7.1 Language Support


JavaScript 和 TypeScriptJavaScript & TypeScript

  • 我們已在啟動 tsserver 時從 64 位元節點切換到 32 位元節點,並將語言服務記憶體耗用量縮減一半。We switched from 64-bit node to 32 bit-node when launching tsserver and cut language service memory consumption in half.
  • 匯入陳述式中的檔案路徑 IntelliSense 現在更快。File path IntelliSense in import statements is now faster.
  • TypeScript 版本可以與 Visual Studio 更新分開安裝,並針對每個專案進行選取。TypeScript versions can be installed independent of Visual Studio updates and selected on a per project basis. 如需詳細資訊,請參閱 Updating TypeScript in Visual Studio 2017 (在 Visual Studio 2017 中更新 TypeScript) 文件。For more information see the Updating TypeScript in Visual Studio 2017 documentation.

Node.jsNode.js

  • 已新增 Node 8 偵錯支援。We added support for Node 8 debugging.
  • 已提升單元測試執行器效能。We made unit test runner performance enhancements.
  • 已簡化 npm 套件安裝程式 UI。We simplified the npm package installer UI.

NuGet NuGet

  • 我們已新增下列 TFM 的支援:netcoreapp2.0netstandard2.0TizenWe have added support for the following TFMs - netcoreapp2.0, netstandard2.0, and Tizen.
  • 我們已整合 NuGet 警告和錯誤與 MSBuild,讓您可以使用現有 MSBuild 屬性來隱藏特定警告或將它們提高為錯誤。We have integrated NuGet warnings and errors with MSBuild so you can use existing MSBuild properties to suppress certain warnings or elevate them to errors.
  • 我們已新增 Semantic Versioning 2.0.0 支援。We have added support for Semantic Versioning 2.0.0.

您可以在 NuGet 版本資訊中找到這些改善的詳細資料,以及完整 Bug 修正清單。You can find more details about these improvements and the complete list of bug fixes in the NuGet release notes.


.NET Framework 4.7 .NET Framework 4.7

Visual Studio 2017 版本 15.3 現在會提供 .NET Framework 4.7 開發工具給所有支援的平台,包括 4.7 執行階段。Visual Studio 2017 version 15.3 now offers the .NET Framework 4.7 development tools to all supported platforms with the 4.7 runtime included. .NET Framework 4.7 提供數項新功能和改善,並且大幅度修正可靠性、穩定性、安全性和效能。The .NET Framework 4.7 offers several new features and improvements as well as numerous reliability, stability, security, and performance fixes.

您可在這些文章中找到更多 .NET 4.7 的詳細資料:You can find more details about .NET 4.7 in these articles:

容器開發工具Container Development Tools

Visual Studio 2017 版本 15.3 現在支援廣泛的容器開發,從跨現有 .NET Framework 應用程式與 Windows 容器,到提供 Windows 和 Linux 支援的 .NET Core。Visual Studio 2017 version 15.3 now supports the breadth of container development across existing .NET Framework apps with Windows Containers, to .NET Core with Windows, and Linux Support. 最近的新增包括執行 Windows Nano Server 之容器中的 .NET Core 應用程式支援,以及容器中 .NET Framework 應用程式的偵錯改善。Recent additions include support for your .NET Core applications in containers running Windows Nano Server, as well as debugging improvements for .NET Framework applications in containers.


我們在 Application Insights 搜尋工具的搜尋查詢結果中新增了相關事件叢集。We added clusters of related events to the search query results in the Application Insights Search tool. 這些叢集可協助您探索應用程式行為中的意外模式,例如來自單一國家/地區、版本或使用者的大量例外狀況。These clusters can help you discover surprising patterns in your application's behavior, like a large volume of exceptions coming from a single country, version, or user.


SQL Server Data Tools (SSDT) SQL Server Data Tools (SSDT)

Visual Studio 2017 版本 15.3 現在隨附於 SQL Server Data Tools 中,而後者完全支援在 Windows、Linux 以及 macOS 中的 Docker 上執行的 SQL Server 2017Visual Studio 2017 version 15.3 now ships with SQL Server Data Tools that fully supports SQL Server 2017 running on Windows, Linux and Docker in macOS. SSDT 現在支援 Azure 上的所有版本的 SQL Server、SQLDB 和 DW。SSDT now supports all versions of SQL Server, SQLDB and DW on Azure.

前幾個客戶回報問題的修正:Fixes for top customer reported issues:

  • 我們已新增 [略過資料行順序] 選項,防止因資料行順序變更的不必要資料表資料移動。We added Ignore Column Order option to prevent unnecessary table data movement due to a column order change.
  • 我們已修正 ESENT 建置錯誤,並提高 Visual Studio 2017 中的資料庫專案建置穩定性和效能。We fixed ESENT build error and increased the database project build stability and performance in Visual Studio 2017.
  • 我們已解決許多其他客戶回報問題。We addressed many more customer reported issues. 如需已修正問題的詳細資料,請參閱 SSDT 變更記錄See SSDT changelog for more details of fixed issues.

Redgate Data Tools Redgate Data Tools

所有 Redgate Data ToolsAll Redgate Data Tools

我們已移除第一次使用 Redgate Data Tools 時所顯示的簡介對話方塊。We removed the introduction dialog that appeared upon first use of Redgate Data Tools.

Redgate SQL PromptRedgate SQL Prompt

我們已進行格式化改善。We made formatting improvements.

Redgate ReadyRollRedgate ReadyRoll

  • 已重新設計 ReadyRoll 開啟專案視窗。The ReadyRoll open project window has been redesigned.
  • 我們已改善「專案屬性」的載入時間。We improved the loading time of Project Properties.
  • 我們已將指令碼狀態小工具取代為動作列。We replaced the script status widget with an action bar.
  • 我們已修正 Azure 的連線問題。We fixed the connectivity problems with Azure.
  • 我們已改善 SQL Server 2016 的語法支援。We improved the syntax support for SQL Server 2016.

PythonPython

  • 已改善螢幕助讀程式、鍵盤導覽和高對比等協助工具。We improved accessibility in screen readers, keyboard navigation and high contrast.
  • 我們已改善當地語系化,讓非英文使用者在 UI 中看到較少的英文文字。We improved localization so that non-English users will see less English text in the UI.

R 工具R Tools

  • 已改善 IntelliSense 體驗。The IntelliSense experience is improved.
  • 您具有封鎖 Ping 之電腦的較佳 Azure 連線。You have better Azure connectivity to your machines that are blocking ping.
  • 當您執行遠端服務安裝時,不再需要有服務管理權限。When you perform a remote services install, you are no longer required to have service management rights.
  • 我們已改善整體協助工具和當地語系化。We improved overall accessibility, and localization.

已連線服務中的 Microsoft Graph 提供者Microsoft Graph Provider in Connected Services

已在已連線服務中啟用 Microsoft Graph API 支援。We have enabled support for Microsoft Graph APIs in Connected Services. 我們已簡化安裝。We've made Installation easier. 只需要開啟 [已連線的服務] 對話方塊,即可存取和安裝 (圖 9)Just open the Connected Services dialog to access and install (Figure 9).

Install Microsoft Graph provider
(圖 9) 安裝 Microsoft Graph 提供者(Figure 9) Install Microsoft Graph provider

已知問題Known Issues

Visual Studio 2017 Known Issues查看 Visual Studio 2017 15.3 版中所有現有的已知問題和可用的因應措施。 See all existing known issues and available workarounds in Visual Studio 2017 version 15.3.

歡迎您提供意見反應。We are fully committed to listening to your feedback. 請前往Developer Community (開發人員社群) 網站,以尋找最新問題、記錄新問題及附議現有問題。Visit the Developer Community site to find the latest issues, log new issues, and upvote existing issues.


Visual Studio 2017 版本資訊記錄Visual Studio 2017 Release Notes History

請參閱 Visual Studio 2017 版本資訊歷程記錄頁面。Please see the Visual Studio 2017 Release Notes History page.


頁面頂端
Top of Page