Visual Studio 2017使用体验

本文分享了作者在安装和使用Visual Studio 2017社区版的体验,包括安装器的改进,模块化的定制选项,以及C++开发方面的支持。安装器提供深度定制,允许用户选择安装组件,降低了C盘空间占用。VS2017对C++14和部分C++17标准提供了支持,并且启动速度有所提升。然而,升级可能导致已安装插件失效和设置重置的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2017年3月7日,微软发布了Visual Studio的第20个正式版本——VS2017。本人也是迫不及待,第一时间下载安装了社区版,毕竟这是宇宙第一的IDE啊,关于VS2017相对于VS2015的改进概述,请移步开源中国,这里重点说一说本人的作为C++安装和使用感受到的使用体验吧。

安装感受

安装界面利于个人深度定制

关于安装器

VS2017有了新的安装逻辑和步骤,本人使用联网安装的方式。VS2017使用了一个独立的安装器进行VS的组件下载和安装,从官网下载的第一个安装程序的体积很小,只有0.99M的空间占用(这是真情怀啊,MS VS团队一定是知道我C盘空间可怜!)。
第一个小程序文件详情
但是这个并不是真正的安装器,真正的安装器是需要通过这个小程序进行下载安装的,然后才能使用。安装器体积……
这里写图片描述
下载很快,完成之后就会自动将安装器安装到系统的C盘下,并打开VS2017的安装版本选择界面,我安装了VS 2017的社区版,足够使用了,重点是个人使用不花钱就上正版。
这里写图片描述

模块化定制

选择好了版本,加载一会就会进入到VS2017的模块选择界面中了,整体感觉很清爽,定制起来很简单,可以选择大的模块,比如.NET桌面开发,或者C++开发, 或者Windows开发等等,自行看图吧…..(这里我还一个都没选呢,只有核心编辑器,占用的空间居然只有764M!天地良心!╮(╯▽╰)╭)
这里写图片描述
在选择好了大模块之后,还可以进行单个组件的选择, 需要注意的是,组件之间是相互依赖的,而有些组件之间的依赖是强制的,有些呢并不是强制的,对于C盘即将失守的同志,建议可以认真定制一下了,不必要的,或者安装后可以配置的,大可不必使用安装器安装了,像一个Win10的SDK就可能要了C盘的老命;对于使用VS进行跨平台开发,如进行安卓开发,开发所需的那一套(jdk,ndk,sdk,ant……)基本都可以安装完了VS之后再去配置,毕竟下载需要时间,而且一般人也都会把VS安装路径放置在默认的C盘吧,所以你选择的VS组件默认都会安装C盘!
这里写图片描述
这里写图片描述
安装程序可以直接选装语言包了,这还是一个挺好的细节变化,我个人以前就很希望能一次安装上英语语言包和中文语言包,每次都是要另外从官网下载语言包,觉得挺麻烦的。
这里写图片描述
对了,选择完了组件,建议一定要去安装界面的右侧,认真看看摘要,取消一些不必要的依赖,这个很容易判断的。确定没问题了,就可以开始安装了。那行等待。以前,最烦的就是害怕因为各种问题导致VS安装失败而要重装整个操作系统。虽然从VS2015开始,我个人再也没遇到过这个问题了,但是2017的安装器更加确保了这个情况的减少,比如我就曾在VS2017在安装过程中不小心重启了电脑,但是安装器在电脑重启之后仍然继续,并未出现任何问题,这一点,真的是很好!

使用感受

  • 对于C++标准的支持
    我个人使用VS主要是做C++开发,VS2017 C++工程默认的支持最新完整的C++14标准,并且支持部分部分C++17标准(选项为latest),另外还支持CMake(支持来自LLVM的Clang编译器,这是在VS2015中就增加了的)。VS2017在C++的项目属性中,多了个关于设置项目匹配最低C++标准的选项。很容易找到这个选项。
  • 启动速度变快

  • 缺点
    我刚卸载完了VS2017,只因为我在更新来了VS2017之后,所有的自己安装的插件全部失效了,VS的设置也全部重置了,很无语。。。如果你把VS作为你的生产工具,建议还是安装2015update3吧。

Summary of Notable New Features in 15.7 •We added support to change installation locations. •You can Save All your pending changes before you start your update. •The update dialog provides you even more details about your update during installation. •C# 7.3 is included in Visual Studio version 15.7. •We improved solution load time for C# and VB projects. •We made numerous updates to F# and its tools, with a focus on performance. •We reduced the time to enable IntelliSense for large .NET Core projects by 25%. •We made Quick Info improvements and new .NET refactorings like convert for-to-foreach and make private fields readonly. •We added the ability to publish ASP.NET Core applications to App Service Linux without containers. •Live Unit Testing works with embedded pdbs and supports projects that use reference assemblies. •The Test Explorer has more responsive icons during test runs. •C++ developers can use CodeLens for unit testing. •We added new rules enforcing items from the C++ Core Guidelines. •Debugging large solutions with /Debug:fastlink PDBs is more robust. •CMake integration supports CMake 3.11 and static analysis. •Python projects support type hints in IntelliSense, and a Run MyPy command has been added to look for typing errors in your code. •Conda environments are supported in Python projects. •We added a next version of our Python debugger based on the popular open source pydevd debugger. •TypeScript 2.8 is included in Visual Studio version 15.7. •We improved Kestrel HTTPs support during debugging. •We added support for JavaScript debugging with Microsoft Edge. •The Debugger supports VSTS and GitHub Authentication for Source Link. •IntelliTrace's step-back debugging feature is supported for debugging .NET Core projects. •We added IntelliTrace support for taking snapshots on exceptions. •We removed the blocking modal dialog from branch checkouts in Git when a solution or project reload is not required. •You have the option to choose between OpenSSL and SChannel in Git. •You can create and associate Azure Key Vaults from within the Visual Studio IDE. •Visual Studio Tools for Xamarin can automatically install missing Android API levels required by Xamarin.Android projects. •The Xamarin.Forms XAML editor provides IntelliSense and quick fixes for conditional XAML. •Visual Studio Build Tools now supports installing into a container, and we added support for building Azure, UWP, and additional project types. •You can create build servers without installing all of Visual Studio. •The Windows 10 April 2018 Update SDK - Build 17134 is the default required SDK for the Universal Windows Platform development workload. •We added support for Visual State Management for all UWP apps and more. •We enabled automatic updates for sideloaded APPX packages. •You have new tools for migrating to NuGet PackageReference. •We added support for NuGet package signatures. •We added Service Fabric Tooling for the 6.2 Service Fabric release. •We updated Entity Framework Tools to work with the EF 6.2 runtime and to improve reverse engineering of existing databases.
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值