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.1)最新发布的信息。This article contains information about the newest release for Visual Studio 2017 for Mac version 7.1.

使用 Visual Studio 2017 for Mac,通过 Xamarin 和 .NET Core 生成移动应用、Web 应用和云应用,以及通过 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 年 9 月 19 日 - Visual Studio for Mac 7.1.5.2Release Date: September 19, 2017 - Visual Studio for Mac 7.1.5.2

此版本增加了对 Apple's Xcode 9 版本的支持。This release adds support for Apple's Xcode 9 release.


发布日期:2017 年 9 月 11 日 - Visual Studio for Mac 7.1.3.1Release Date: September 11, 2017 - Visual Studio for Mac 7.1.3.1

此版本修复了以下问题:This release fixes the following issue:


发布日期:2017 年 8 月 14 日 - Visual Studio for Mac 7.1.0.1297Release Date: August 14, 2017 - Visual Studio for Mac 7.1.0.1297

此版本侧重于 bug 修复并引入了以下新功能:This release focused on bug fixes and introduces the following new features:

  • 对使用 .NET Core 2.0 生成应用程序的支持。Support for building applications using .NET Core 2.0.
  • iOS 签名工作流更新。iOS signing workflow updates.

.NET Core 2 支持.NET Core 2 support

Visual Studio for Mac 支持生成 .NET Core 2.0 应用程序,包括库、控制台应用以及 Web 应用程序和 ASP.NET Core 服务。Visual Studio for Mac supports building .NET Core 2.0 applications, including libraries, console apps, as well as web applications and services with ASP.NET Core.

现可通过单独的下载安装 .NET Core 2.0 SDK,以便在 Visual Studio 2017 for Mac(版本 7.1)中启用 .NET Core 2.0 开发。Note that the .NET Core 2.0 SDK needs to be installed via a separate download to enable .NET Core 2.0 development in Visual Studio 2017 for Mac Version 7.1. 可前往 www.dot.net/core 获取。You can get it at www.dot.net/core. Visual Studio 提供对多个 .NET Core SDK 的并行支持。Visual Studio enables side-by-side support of multiple .NET Core SDKs. 这还意味着可试用 .NET Core SDK 最新的每日生成,同时使用最新公开发布版本进行开发。This also means you can experiment with the latest daily build of the .NET Core SDK, while also developing with the latest public releases.

iOS 签名工作流更新iOS signing workflow updates

此版本引入了新功能,用于为 iOS 和 tvOS 应用创建所需签名项目。This release introduces the ability to create required signing artifacts for iOS and tvOS apps. 使用 Visual Studio for Mac 可以:With Visual Studio for Mac, it's possible to:

  • 创建新签名标识,并将它们安装到本地 Keychain。Create new signing identities and install them to the local Keychain.
  • 创建新的配置文件。Create new Provisioning Profiles.
  • 向现有配置文件添加新的签名标识。Add a new signing identity to an existing profile.
  • 预配新设备:在 Apple 开发者门户中注册设备,并将它们添加到预配配置文件。Provision new devices: register a device in the Apple Developer Portal and add them to a provisioning profile.

若要试用这些新的签名功能,右键单击项目,然后浏览到“选项”>“ iOS 捆绑签名”。To try out these new signing features right-click on your project and browse to Options > iOS Bundle Signing.

使用“签名标识”部分Using the Signing Identity section

在签名之前必须满足以下条件:Before signing, you must satisfy the following criteria:

  • Apple Developer Portal(开发者门户)的“证书”部分显示有效的证书(未被吊销)。A valid certificate (not revoked) is displayed on the Apple Developer Portal in the "Certificates" section.
  • 该证书是为所选团队/开发者颁发的。The certificate is issued for selected team/developer.
  • 证书和私钥都应在本地 Keychain 中进行安装。Both certificate and private key should be installed in your local Keychain.
  • 证书未过期。Certificate should not be expired.

如果当前计算机上未提供标识,请使用该下拉菜单的“创建签名标识...”选项。Use Create signing identity... option of the dropdown if no identities are available on your current machine.

使用“预配配置文件”部分Using the Provisioning Profile section

要显示“预配配置文件”下拉菜单配置文件,必须满足以下条件:In order to be shown in the "Provisioning Profile" drop-down profile must satisfy the following criteria:

  • 未过期。Not expired.
  • 有效(包括已注册的设备和有效的证书)。Valid (include registered devices and valid certificates).
  • 符合当前分发类型(基于顶部开关的调试版或发行版)Match current distribution type (Debug or Release based on switches at the top).
  • 匹配捆绑标识符。Match bundle identifier. 此列表中还应显示与模式匹配的通配符配置文件。Wild card profiles with a matching pattern will be also displayed in this list.

如果找不到任何配置文件,请使用下拉菜单中的“创建预配配置文件...”项。Use Create provisioning profile... item of the dropdown if no profiles were found.

如果想要切换回先前版本的签名控件,可手动设置预配配置文件和签名标识,将团队设置为“无”。If you need to switch back to the previous version of signing controls, and set the provisioning profile and signing identity manually, set the team to None. 新的签名控件将被替换为旧控件。New signing controls will be replaced with old ones. 但强烈建议尝试新功能,如果遇到任何问题,请向我们提供反馈。However, we strongly encourage you to try new functionality and provide us with feedback in case of any problems.

限制:Limitations:

  • 在 Visual Studio for Mac 中创建预配配置文件时无需考虑项目中所选的权利 (Entitlements.plist)。Provisioning profiles created in Visual Studio for Mac will not take into account entitlements selected in your projects (Entitlements.plist). IDE 的未来版本中将提供此功能。This functionality will be added in future versions of the IDE.
  • 默认情况下,分发预配配置文件将面向应用商店。Distribution provisioning profiles by default will target App Store. 应手动创建内部配置文件或临时配置文件。In House or Ad Hoc profiles should be created manually.

此版本中的修补程序Fixes in this release

Android SDK 管理器Android SDK Manager

  • Android SDK 管理器现在已集成在 Visual Studio Preferences 中,而不是作为外部应用程序。Android SDK Manager is now integrated within Visual Studio Preferences instead of being an external application.
  • 已修复:Android SDK 管理器在安装中止后显示错误的组件状态。Fixed: The Android SDK Manager shows the wrong component status after an aborted installation.
  • 已修复:如果有可用更新,会安装但不会选择 Android SDK 工具,这会导致无意卸载组件。Fixed: Android SDK Tools installed but not selected if update is available which can result in the component being uninstalled unintentionally.
  • 已修复:如果 SDK 组件未发生任何更改,则不会保存默认的 Android SDK 位置。Fixed: Default Android SDK location is not saved if no SDK component changes have been made.

性能改进Performance Improvements

  • 改进了在文档中打开、呈现、键入内容的性能。Improved performance for opening, rendering, typing in a document.
  • 优化了键入时完成的后台操作。Optimized background work done while typing.
  • 缩短了打开解决方案时的加载时间。Improved load time of opening a solution.
  • 优化了搜索栏结果的加载性能。Optimized loading the search bar results.
  • 优化了许多源分析规则。Optimized a lot of source analysis rules.
  • 优化了用户界面操作的低级代码。Optimized the low level code of the UI work.
  • 修复了会导致 IDE 的内存使用率不断增长的问题。Fixed issues that would cause the memory usage of the IDE to grow over time.
  • 优化了代码完成、参数提示、语义突出显示。Optimized code completion, parameter hinting, semantic highlighting.
  • 优化了 Solution Pad 中的文件夹扩展,尤其是包含数百个项的文件夹。Optimized folder expansion in the solution pad - noticeable with folders which contain hundreds of items.
  • 优化了 IDE 首次运行以及后续运行的启动时间。Optimized IDE startup time for both the first run and subsequent runs.
  • 总之,优化了使用 IDE 的 CPU 使用率和内存流量。In general, optimized CPU usage and memory traffic for using the IDE.

其他改进Other Improvements

  • 已改进:更新了在代理后台系统上使用的标识服务。Improved: We have updated the identity service for use on systems behind a proxy. 这可从密钥链中获取身份验证详细信息或相关提示。This will get the authentication details from the keychain or prompt for them. 如果之前登录时总是遇到问题,请再次尝试并向我们发送任何反馈,以便我们继续改进代理支持。If you have been having issues signing in previously please try again and send us any feedback you have so that we continue to improve support for proxies.
  • 已修复:“属性”面板中“约束优先级”显示为 0;无法从“设计器”弹出窗口进行设置。Fixed: Constraint Priority displays 0 in Properties pad; cannot be set from Designer pop-up.
  • 已修复:添加了为 F# 项目指定平台目标的功能。Fixed: Add the ability to specify the Platform Target for F# projects.
  • 已修复:未使用的命名空间代码问题无法正确处理 FSharp.Core 命名空间。Fixed: Unused namespaces code issue doesn't handle FSharp.Core namespaces correctly.
  • 已修复:许多“新建文件”对话框/字符串未进行本地化。Fixed: Many "New file" dialogs/strings are unlocalized.
  • 已修复:“新建解决方案”对话框未进行本地化。Fixed: "New Solution" dialogs are unlocalized.
  • 已修复:“配置新单一视图应用”对话框中的文本被截断。Fixed: Text is truncated in the "Configure your new Single View App" dialog.
  • 已修复: Nuget 向导工具提示显示 xml 字符引用“'”。Fixed: Nuget Wizard tooltip is showing xml character reference '''.
  • 已修复:暂停更新时更新程序工具提示为空。Fixed: Updater tooltip is empty when updates are paused.
  • 已修复:在 VSTS 上更新 git 存储库失败,出现“null 用户名或密码”。Fixed: Update git repo on VSTS fails with "null username or password".
  • 已修复:首次使用“nameof”方案进行重构时出错。Fixed: Refactoring for the "nameof" scenario on first use is wrong.
  • 已修复:如果具有许多最近使用的项目,欢迎页总是丢失最近使用的项目。Fixed: Welcome page keeps losing my recent project when there are many recent projects.
  • 已修复:如果容器应用已启用特定于设备的生成,但扩展未启用,则 iOS 生成会出错。Fixed: iOS Build error if container app has device-specific builds enabled, while the extension does not.
  • 已修复:语法突出显示不存在,局部变量出现 C# 6 字符串内插。Fixed: Syntax Highlighting is not present with C#6 string interpolation for local variables.
  • 已修复:在某些情况下,用户无法启动 Xamarin Inspector。Fixed: In some cases, users are unable to launch Xamarin Inspector.
  • 已修复:以发布模式生成本机应用(和 iOS)时出现警告。Fixed: Getting Warnings while building the Native app (and iOS) in release mode.
  • 已修复:.NET Core 类库面向 .NET Standard 而不是 netcoreapp。Fixed: .NET Core Class Library targets .NET Standard instead of netcoreapp.
  • 已修复:将图像(.png 或 .jpg)添加到 iOS Storyboard 时 IDE 崩溃。Fixed: IDE crashes when adding an image (.png or .jpg) to an iOS Storyboard.
  • 已修复: 添加所有 Google Play Services 包文件时失败,出现“System.AggregateException: 发生了一个或多个错误。Fixed: Adding all Google Play Services packages fails with "System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: 值不能为 null.v 参数名称: packageIdentity.Version”。---> System.ArgumentNullException: Value cannot be null.v Parameter name: packageIdentity.Version".
  • 已修复:快速修复右键单击子菜单时卡在“正在加载 …”页面。Fixed: Quick Fix right-click submenu gets stuck up on "Loading...".
  • 已修复:单击 Android SDK 管理器的“位置”选项卡中的“...”文件浏览器Fixed: The file browser is not displaying SDK Location when clicking “…” 选项时,文件浏览器不会显示 SDK 位置。file explorer option in Locations tab of the Android SDK Manager.
  • 已修复:F# .NET Core 不编译。Fixed: F# .NET Core projects do not compile.
  • 已修复:登录到 MS 帐户时提示输入访问代理服务器 graph.windows.net 的凭据。Fixed: Logging in to MS Account prompts for credentials to access proxy server graph.windows.net.
  • 已修复:某些 F# 项目的“查找引用”和“查找派生类型”中出现死锁。Fixed: Deadlock in Find References and "Find Derived Types" for some F# projects.
  • 已修复:尝试在 Visual Studio for Mac 中添加新 iOS 帐户时出现 Null 引用异常。Fixed: Null Reference Exception when trying to add a new iOS account in Visual Studio for Mac.
  • 已修复:将 .NET Standard 项目添加到现有解决方案/目录结构时会重写/重新设置磁盘上的所有源代码格式Fixed: Adding .NET Standard project to existing solution/directory structure rewrites/reformats all source code on disk.
  • 删除必须安装特定 .NET Core 版本(预览版 2)才能使用 .NET Core 2.0 的要求。Removes a requirement to have a specific .NET Core version (preview 2) installed to use .NET Core 2.0. 现在支持更高版本的预览版和 .NET Core RTW。Later previews and .NET Core RTW are now supported.

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.0 发布说明Visual Studio 2017 for Mac version 7.0 Release Notes

返回页首
Top of Page