Visual Studio Icon Visual Studio 2017 版本 15.9 发行说明Visual Studio 2017 version 15.9 Release Notes


| 开发者社区 | 系统要求 | 兼容性 | 可分发代码 | 许可条款 | 博客 | 已知问题 || Developer Community | System Requirements | Compatibility | Distributable Code | License Terms | Blogs | Known Issues |


单击按钮即可下载最新版 Visual Studio 2017。Click a button to download the latest version of Visual Studio 2017. 有关如何安装和更新 Visual Studio 2017 的说明,请参阅将 Visual Studio 2017 更新到最新版本For instructions on installing and updating Visual Studio 2017, see Update Visual Studio 2017 to the most recent release. 另请参阅如何脱机安装的说明。Also, see instructions on how to install offline.

请访问 visualstudio.com/downloads 页面,下载其他 Visual Studio 2017 产品。Visit the visualstudio.com/downloads page to download other Visual Studio 2017 products.


15.9 中的新增功能What's New in 15.9


Visual Studio 2017 版本 15.9 发布Visual Studio 2017 version 15.9 Releases


重要

Visual Studio 2017 版本 15.9 安全公告通知Visual Studio 2017 version 15.9 Security Advisory Notices


15.9 版中的主要新增功能摘要Summary of Notable New Features in 15.9

15.9 版中解决的首要问题Top Issues Fixed in 15.9

请参阅 Visual Studio 2017 15.9 版中已解决的客户所报所有问题。See all customer-reported issues fixed in Visual Studio 2017 version 15.9.

The Developer Community Portal


15.9 版中新增功能的详细信息Details of What's New in 15.9

Release Notes Icon Visual Studio 2017 版本 15.9.0Visual Studio 2017 version 15.9.0

发布日期:2018 年 11 月 13 日released on November 13, 2018

15.9 版中的新增功能New Features in 15.9

安装Install

我们让你能够更为轻松地跨 Visual Studio 的多个安装来保持安装设置的一致性。We made it easier to keep your installation settings consistent across multiple installations of Visual Studio. 你现在可以使用 Visual Studio 安装程序为给定的 Visual Studio 实例导出 .vsconfig 文件。You can now use the Visual Studio Installer to export a .vsconfig file for a given instance of Visual Studio. 此文件将包含有关你已安装的工作负载和组件的信息。This file will contain information about what workloads and components you have installed. 然后,可以导入此文件,以将这些工作负载和组件选项添加到 Visual Studio 的其他安装中。You can then import this file to add these workload and component selections to another installation of Visual Studio.

调试Debugging

已支持使用基于可移植 pdb 的新符号包格式 (.snupkg)。We have added support for consuming the new portable-pdb based symbol package format (.snupkg). 添加了工具,使你可从 NuGet.org 符号服务器等源轻松使用和管理符号包We have added tooling to make it easy to consume and manage these symbol packages from sources like the NuGet.org symbol server.

C++C++

  • 我们在 Visual Studio Enterprise 版本的适用于 C++ 的调试器中添加了“后退”功能We've added the "step back" feature in the debugger for C++ in the Visual Studio Enterprise Edition. 后退功能使你能够及时返回,以及时查看之前的应用程序的状态。Step back enables you to go back in time to view the state of your application at a previous point in time.
  • C++ IntelliSense 现响应面向 Linux 的 CMake 和 MSBuild 项目的远程环境中的更改。C++ IntelliSense now responds to changes in the remote environment for both CMake and MSBuild projects targeting Linux. 安装新的库或更改 CMake 项目时,C++ IntelliSense 将自动分析远程计算机上的新头文件,以实现完整无缝的 C++ 编辑体验。As you install new libraries or change your CMake projects, C++ IntelliSense will automatically parse the new headers files on the remote machine for a complete and seamless C++ editing experience.
  • 已将 UWP Desktop Bridge 框架包更新至 Windows 应用商店的最新版本,适用于包括 ARM64 在内的所有受支持的体系结构。We've updated the UWP Desktop Bridge framework packages to match the latest in the Windows Store for all supported architectures, including ARM64.
  • 除修复了 60 个阻止性 bug 外,还添加了对 range-v3 库和 MSVC 15.9 编译器配合使用的支持,在 /std:c++17 /permissive- 下提供。In addition to fixing 60 blocking bugs, we have added support for the range-v3 library with the MSVC 15.9 compiler, available under /std:c++17 /permissive-.
  • Visual Studio 中的零售 VCLibs 框架包已更新至 UWP 应用商店中的最新版。The retail VCLibs framework package in Visual Studio has been updated to match the latest available version in the UWP Store.
  • 现已完全支持 ARM64 C++ 本机桌面方案(包括 VC++ 2017 可再发行版)。Full support is now available for ARM64 C++ Native Desktop scenarios, including VC++ 2017 Redistributable.
  • 我们在 C++ 17 的 charconv 标头中实现了浮点 to_chars() 的最短往返程十进制重载。We implemented the shortest round-trip decimal overloads of floating-point to_chars() in C++17's charconv header. 使用科学记数法,约是 sprintf_s() "%.8e" 的 10 倍快(对于单精度浮点),是 sprintf_s() "%.16e" 的 30 倍快(对于双精度浮点)。For scientific notation, it is approximately 10x as fast as sprintf_s() "%.8e" for floats, and 30x as fast as sprintf_s() "%.16e" for doubles. 这使用 Ulf Adams 新算法 - Ryu。This uses Ulf Adams' new algorithm, Ryu.
  • 对 Visual C++ 编译器的标准符合性进行了一系列改进,标准符合性可能要求在严格符合性模式下进行源更改,可在此处找到这一系列改进。A list of improvements to the standards conformance of the Visual C++ compiler, which potentially require source changes in strict conformance mode, can be found here.
  • 我们已弃用 C++ 编译器 /Gm 交换机。We have deprecated the C++ Compiler /Gm switch. 如果已显式定义,请考虑在生成脚本中禁用 /Gm 交换机。Consider disabling the /Gm switch in your build scripts if it's explicitly defined. 或者,也可以安全地忽略针对 /Gm 的弃用警告,因为在使用“将警告视为错误”(/WX) 时不会将其视为错误。Alternatively, you can also safely ignore the deprecation warning for /Gm as it will not be treated as error when using "Treat warnings as errors" (/WX).

F#F#

F# 编译器F# Compiler

  • 我们修复了采用 byref 值的扩展方法可能转变不可变值的 bug。We fixed a bug where extension methods that take byref values could mutate an immutable value.
  • 改进了 byref/inref/outref 上的重载的编译错误信息,而非显示以前模糊的错误。We improved the compile error information for overloads on byref/inref/outref, rather than displaying the previously obscure error.
  • 现已完全不允许使用 byref 上的可选类型扩展。Optional Type Extensions on byrefs are now disallowed entirely. 之前可以声明它们,但无法使用,从而令客户困惑。They could be declared previously, but were unusable, resulting in a confusing user experience.
  • 修复了在结构元组上使用 CompareTo 并产生使用别名的结构元组的类型等效项而造成运行时异常的 bug。We fixed a bug where CompareTo on a struct tuple and causing a type equivalence with an aliased struct tuple would result in a runtime exception.
  • 修复了在创作适用于 .NET Standard 的类型提供程序时使用 System.Void 可能无法在设计时查找 System.Void 类型的 bug。We fixed a bug where use of System.Void in the context of authoring a Type Provider for .NET Standard could fail to find the System.Void type at design-time.
  • 修复了部分应用的可区分联合构造函数不匹配可区分联合的带批注或推论出的类型时可能发生内部错误的 bug。We fixed a bug where an internal error could occur when a partially applied Discriminated Union constructor is mismatched with an annotated or inferred type for the Discriminated Union.
  • 修改了尝试采用表达式(如访问属性)寻址时的编译器错误消息,以更清楚地表达其违反了 byref 类型的范围规则。We modified the compiler error message when attempting to take an address of an expression (such as accessing a property) to make it more clear that it violates scoping rules for byref types.
  • 修复了对方法或函数部分应用 byref 类型时程序可能在运行时崩溃的 bug。We fixed a bug where your program could crash at runtime when partially applying a byref type to a method or function. 现在会显示一条错误消息。An error message will now display.
  • 修复了 byref 和引用类型(例如 byref<int> option)的无效组合会在运行时失败且不发出错误消息的问题。We fixed an issue where an invalid combination of a byref and a reference type (such as byref<int> option) would fail at runtime and not emit an error message. 现在可发出错误消息。We now emit an error message.

F# 工具F# Tools

  • 解决了使用 .NET Core SDK 生成的 F# 程序集元数据不在 Windows 的文件属性中显示的问题。We resolved an issue where metadata for F# assemblies built with the .NET Core SDK was not shown in file properties on Windows. 现在,右键单击 Windows 上的程序集并选择“属性”即可查看此元数据。You can now see this metadata by right-clicking an assembly on Windows and selecting Properties.
  • 修复了在 F# 源中使用 module global 可能导致 Visual Studio 不响应的 bug。We fixed a bug where use of module global in F# source could cause Visual Studio to become unresponsive.
  • 修复了使用 inref<'T> 的扩展方法在完成列表中不显示的 bug。We fixed a bug where extension methods using inref<'T> would not show in completion lists.
  • 修复了 .NET Framework F# 项目的“项目属性”中 TargetFramework 下拉列表为空的 bug。We fixed a bug where the TargetFramework dropdown in Project Properties for .NET Framework F# projects was empty.
  • 修复了创建面向 .NET Framework 4.0 的新 F# 项目将失败的 bug。We fixed a bug where creating a new F# project targeting .NET Framework 4.0 would fail.

F# 开源存储库F# Open Source Repository

现将 VisualFSharpFull 项目设为默认启动项目,使你无需在调试前进行手动设置。The VisualFSharpFull project is now set as the default startup project, eliminating the need to manually set that before debugging. 谢谢你,Robert JeppesenThanks, Robert Jeppesen!

JavaScript 和 TypeScript 语言服务支持JavaScript and TypeScript Language Service Support

  • 我们添加了重构,以在文件被重命名后修复该文件的引用。We added refactoring to fix up references to a file after it has been renamed. 我们还添加了对项目引用的支持,使你能够将你的 TypeScript 项目拆分为相互引用的独立版本。We also added support for project references, letting you split your TypeScript project up into separate builds that reference each other.
  • 我们已更新到最新的 Vue CLI 3.0 并改进了 Vue.js 模板文件中的 linting。We updated to the latest Vue CLI 3.0 and improved linting in Vue.js template files. 你也可以使用 Jest 框架来编写和运行单元测试。You can also write and run unit tests using the Jest framework.
  • 添加了对 TypeScript 3.1 的支持。We have added support for TypeScript 3.1.

SharePoint 2019 支持SharePoint 2019 Support

我们添加了可以实现为 SharePoint 2019 创建项目的新模板。We added new templates that allow you to create projects for SharePoint 2019. 我们能够将现有 SharePoint 项目从 SharePoint 2013 和 SharePoint 2016 迁移到新的项目模板。You will have the ability to migrate existing SharePoint projects from both SharePoint 2013 and SharePoint 2016 to the new project template.

Visual Studio Tools for XamarinVisual Studio Tools for Xamarin

Visual Studio Tools for Xamarin 现支持 Xcode 10,这使你可为 iOS 12、tvOS 12 和 watchOS 5 生成和调试应用。Visual Studio Tools for Xamarin now supports Xcode 10, which allows you to build and debug apps for iOS 12, tvOS 12, and watchOS 5. 有关可用新功能的更多详细信息,请参阅使用 iOS 12 的准备工作我们对 iOS 12 的介绍See how to get ready for iOS 12and our introduction to iOS 12for more details on the new features available.

初始 Xamarin.Android 生成性能改进Initial Xamarin.Android Build Performance Improvements

Xamarin.Android 9.1 包括初始生成性能改进Xamarin.Android 9.1 includes initial build performance improvements. 请参阅我们的 Xamarin.Android 15.8 和15.9 生成性能比较以了解详细信息。See our Xamarin.Android 15.8 vs. 15.9 build performance comparison for more details.

适用于通用 Windows 平台开发的工具Tools for Universal Windows Platform Developers

  • 最新的 Windows 10 SDK(版本 17763)作为通用 Windows 平台开发工作负荷中的可选组件包括进来。The latest Windows 10 SDK (build 17763) is included as an optional component in the Universal Windows Platform development Workload.
  • 我们为通用 Windows 平台项目添加了对创建 .MSIX 包的支持,也在 Windows 应用程序打包项目模板中添加了此支持。We added support for creating .MSIX packages for both the Universal Windows Platform projects, as well as in the Windows Application Packaging Project template. 若要创建 .MSIX 包,应用程序的最低版本必须为最新的 Windows 10 SDK(内部版本 17763)。To create an .MSIX package, the minimum version of your application must be the latest Windows 10 SDK (build 17763).
  • 你现在可以构建 ARM64 UWP 应用程序。You can now build ARM64 UWP applications. 对于.NET UWP 应用程序,仅 .NET Native 支持 ARM64,并且必须将应用程序的最低版本设置为 Fall Creators Update(版本 16299)或更高版本。For .NET UWP applications, only .NET Native is supported for ARM64, and you must set the Minimum Version of your application to the Fall Creators Update (Build 16299) or higher.
  • 我们为通用 Windows 平台应用程序的 F5(生成 + 部署)速度进行了改进。We made improvements to the F5 (Build + Deploy) speed for Universal Windows Platform applications. 这一改进对于使用 Windows 身份验证部署到远程目标的操作将更为明显,但也会影响所有其他部署。This will be most noticeable for deployments to remote targets using Windows authentication, but will impact all other deployments as well.
  • 开发人员现在可以选择在使用 XAML 设计器时指定控件显示选项,同时生成面向 Windows 10 Fall Creators Update(内部版本 16299)或更高版本的 UWP 应用程序。Developers now have the option to specify Control Display Options when using the XAML Designer while building UWP applications targeting the Windows 10 Fall Creators Update (build 16299) or later. 选择“仅显示平台控件”可阻止设计器执行任何自定义控制代码,以提升设计器的可靠性。Selecting "Only Display Platform Controls" prevents the designer from executing any custom control code to improve reliability of the designer.
  • XAML 设计器现可自动将引发可捕获异常的控件替换为回退控件,而非出现设计器崩溃。The XAML designer now automatically replaces controls that throw with catchable exceptions with fallback controls, rather than having the designer crash. 回退控件具有黄色边框,以提示开发人员控件已在设计时被替换。Fallback controls have a yellow border to cue in developers that the control has been replaced at design time.
  • Windows 应用程序打包项目现支持使用 Core CLR 调试器类型调试后台进程。The Windows Application Packaging project now supports debugging background process using the Core CLR debugger type.

NuGetNuGet

NuGet 凭据提供程序改进NuGet Credential Provider Improvements

此版本显著改善了使用已经过身份验证的包源的体验,尤其适用于 Mac 和 Linux 用户:This release substantially improves the experience of using authenticated package feeds, especially for Mac and Linux users:

  • Visual Studio、MSBuild、NuGet.exe 和 .NET 现在支持新的凭据提供程序插件接口,可以通过 Azure Artifacts 等专用包主机实现。Visual Studio, MSBuild, NuGet.exe, and .NET now support a new Credential Provider plugin interface, which can be implemented by private package hosts like Azure Artifacts. 以前,只有 NuGet.exe 和 Visual Studio 接受凭据提供程序。Previously, only NuGet.exe and Visual Studio accepted Credential Providers.
  • Visual Studio 版本(包括生成工具版本)现提供具有特定工作负荷的 Azure Artifacts 凭据提供程序,从而可在开发过程中轻松使用 Azure Artifacts 源。Visual Studio editions (including the Build Tools edition) now deliver the Azure Artifacts Credential Provider with certain workloads, so that you can easily use Azure Artifacts feeds in the course of your development. 要使用这些改进的功能,请安装 NuGet 包管理器NuGet 目标和生成任务组件,或 .NET Core 工作负载。To use these improvements, install the NuGet package manager or NuGet targets and build tasks components, or the .NET Core workload.

NuGet 包管理器改进NuGet Package Manager Improvements

  • NuGet 现在支持对基于 PackageReference 的项目锁定完全包封闭,因此可支持包的重复还原。NuGet now enables locking the full package closure of PackageReference based projects, thereby enabling repeatable restore of packages.
  • Visual Studio NuGet 包管理器用户界面现在显示使用新许可证格式的包的许可证信息。The Visual Studio NuGet package manager UI now surfaces the license information for packages that use the new license format. 新许可证格式以 SPDX 表达式或许可证文件的形式嵌入许可证信息作为包的一部分。The new license format embeds the license information as part of the package in the form of an SPDX expression or a license file.

NuGet 安全性NuGet Security

我们引入了 NuGet 客户端策略,使你能够配置包安全性约束。We have introduced NuGet Client Policies which allow you to configure package security constraints. 这意味着你可以锁定环境以仅允许安装信任的包,方法如下:This means you can lock down environments so only trusted packages can be installed by:

  • 不允许安装未签名的包。Disallowing the installation of unsigned packages.
  • 根据创建者签名定义一系列信任的签名者。Defining a list of trusted signers based on the author signature.
  • 根据存储库签名中的元数据,定义一系列信任的 NuGet.org 包所有者。Defining a list of trusted NuGet.org package owners based on the metadata in the repository signature.

用于 Visual Studio 的 .NET Core 工具.NET Core Tools for Visual Studio

从此版本开始,用于 Visual Studio 的 .NET Core 工具现将默认为仅使用最新稳定版本的 .NET Core SDK,它安装于 Visual Studio 公开发行版的计算机上。Starting with this release, the .NET Core tools for Visual Studio will now default to using only the latest stable version of a .NET Core SDK that is installed on your machine for GA releases of Visual Studio. 对于将来的预览版,工具将仅使用预览版 .NET Core SDK。For future previews, the tools will use only preview .NET Core SDKs.


Release Notes Icon Visual Studio 2017 版本 15.9 安全公告通知Visual Studio 2017 version 15.9 Security Advisory Notices

Visual Studio 2017 版本 15.9.4 服务发布 -- 发布时间:2018 年 12 月 11 日Visual Studio 2017 version 15.9.4 Service Release -- released on December 11, 2018 New Release icon

CVE-2018-8599 诊断中心标准收集器服务特权提升漏洞CVE-2018-8599 Diagnostics Hub Standard Collector Service Elevation of Privilege Vulnerability

如果诊断中心标准收集器服务不正确地处理特定文件操作,就会存在特权提升漏洞。An elevation of privilege vulnerability exists when the Diagnostics Hub Standard Collector Service improperly handles certain file operations. 成功利用此漏洞的攻击者可以获得提升的权限。An attacker who successfully exploited this vulnerability could gain elevated privileges. 攻击者必须对易受攻击的系统拥有非特权访问权限,才能利用此漏洞。To exploit this vulnerability, an attacker would require unprivileged access to a vulnerable system. 此安全更新程序解决了这个漏洞,具体是通过确保诊断中心标准收集器服务能够正确模拟文件操作。The security update addresses the vulnerability by ensuring the Diagnostics Hub Standard Collector Services properly impersonates file operations.


Release Notes Icon Visual Studio 2017 版本 15.9.1Visual Studio 2017 version 15.9.1

发布日期:2018 年 11 月 15 日released on November 15, 2018

15.9.1 中修复的问题Issues Fixed in 15.9.1

以下问题已在 15.9.1 版中得到解决:These are the issues addressed in 15.9.1:

  • 修复了以下 bug:使用 Microsoft Xbox One XDK 时,Visual Studio 无法生成项目。Fixed a bug where Visual Studio would fail to build projects using the Microsoft Xbox One XDK.

15.9.1 版中新增功能的详细信息Details of What's New in 15.9.1

通用 Windows 平台开发 SDKUniversal Windows Platform Development SDK

Windows 10 2018 年 10 月更新 SDK - 内部版本 17763 现在是通用 Windows 平台开发工作负载所选的默认 SDK。The Windows 10 October 2018 Update SDK (build 17763) is now the default selected SDK for the Universal Windows Platform development workload.


Release Notes Icon Visual Studio 2017 版本 15.9.2Visual Studio 2017 version 15.9.2

发布日期:2018 年 11 月 19 日released on November 19, 2018

15.9.2 中修复的问题Issues Fixed in 15.9.2

15.9.2 版中解决了客户报告的下列问题:These are the customer-reported issues addressed in 15.9.2:


Release Notes Icon Visual Studio 2017 版本 15.9.3Visual Studio 2017 version 15.9.3

发布日期:2018 年 11 月 28 日released on November 28, 2018

15.9.3 中修复的问题Issues Fixed in 15.9.3

15.9.3 版中解决了客户报告的下列问题:These are the customer-reported issues addressed in 15.9.3:


Release Notes Icon Visual Studio 2017 版本 15.9.4Visual Studio 2017 version 15.9.4 New Release icon

发布时间:2018 年 12 月 11 日released on December 11, 2018

15.9.4 中修复的问题Issues Fixed in 15.9.4

15.9.4 中解决了客户报告的下列问题:These are the customer-reported issues addressed in 15.9.4:

安全公告通知Security Advisory Notices


已解决的问题Fixed Issues

请参阅 Visual Studio 2017 15.9 版中已解决的客户所报所有问题。See all customer-reported issues fixed in Visual Studio 2017 version 15.9.

The Developer Community Portal


已知问题Known Issues

查看 Visual Studio 2017 版本 15.9 中全部现有已知问题和可用解决办法。See all existing known issues and available workarounds in Visual Studio 2017 version 15.9.

Visual Studio 2017 Known Issues


反馈Feedback

我们期待你的宝贵意见和建议!We would love to hear from you! 如有问题,请通过安装程序或 Visual Studio IDE 右上角的“报告问题”选项告知我们。For issues, let us know through the Report a Problem option in the upper right-hand corner of either the installer or the Visual Studio IDE itself. 必须向The Feedback Icon 图标位于右上角。icon is located in the upper right-hand corner. 可以在 Visual Studio 开发者社区中提出产品建议或跟踪问题,也可在其中提问、寻找答案和建议新功能。You can make a product suggestion or track your issues in the Visual Studio Developer Community, where you can ask questions, find answers, and propose new features. 此外,还可通过实时聊天支持获得免费安装帮助。You can also get free installation help through our Live Chat support.


博客Blogs

通过参考开发人员工具博客网站中的见解和建议,随时掌握所有新版本的最新最全资讯,并发表有关大量功能的深入分析帖子。Take advantage of the insights and recommendations available in the Developer Tools Blogs site to keep you up-to-date on all new releases and include deep dive posts on a broad range of features.

Developer Tools Blogs


Visual Studio 2017 发行说明历史记录Visual Studio 2017 Release Notes History

若要详细了解以往 Visual Studio 2017 版本的相关信息,请参阅 Visual Studio 2017 发行说明历史记录页。For more information relating to past versions of Visual Studio 2017, see the Visual Studio 2017 Release Notes History page.


返回页首
Top of Page