离线安装VS2017官方参考文档
2018-03-09 20:12
489 查看
Install Visual Studio 2017 on low bandwidth or unreliable network environments
Step 1 - Download the Visual Studio bootstrapper
Start by downloading the Visual Studio bootstrapper for your chosen edition of Visual Studio.Your setup file—or to be more specific, a bootstrapper file—will match or be similar to one of the following.
Edition | File |
---|---|
Visual Studio Community | vs_community.exe |
Visual Studio Professional | vs_professional.exe |
Visual Studio Enterprise | vs_enterprise.exe |
Step 2 - Create a local install cache
You must have an internet connection to complete this step. To create a local layout, open a command prompt and use one of the commands from the following examples: The examples here assume that you're using the Community edition of Visual Studio; adjust the command as appropriate for your edition.For .NET web and .NET desktop development, run:
vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
For .NET desktop and Office development, run:
vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Office --includeOptional --lang en-US
For C++ desktop development, run:
vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US
To create a complete local layout with all features (this will take a long time—we have lots of features!), run:
vs_community.exe --layout c:\vs2017layout --lang en-US
If you want to install a language other than English, change
en-USto a locale from the list at the bottom of this page. Use this list of the components and workloads available to further customize your installation cache as necessary.
Important
A complete Visual Studio 2017 layout requires at least 35 GB of disk space and can take some time to download. See Use command-line parameters to install Visual Studio 2017 for information on how to create a layout with only the components you want to install.
Step 3 - Install Visual Studio from the local cache
TipWhen you run from a local install cache, setup uses the local versions of each of these files. But if you select components during installation that aren't in the cache, we attempt to download them from the internet.
To ensure that you only install the files you've downloaded, use the same command-line options that you used to create the layout cache. For example, if you created a layout cache with the following command:
vs_community.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
Use this command to run the installation:
c:\vs2017layout\vs_community.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional
---------------------------------------------------------------------------------------------
简体中文:
--lang [code=plain]zh-CN[/code]
[/code]
查看需要下载的模块的ID:
Visual Studio 2017 workload and component IDs
---------------------------------------下载VC++,MFC模块:
d:\Downloads\vs_Community.exe --layout f:\vs2017layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --add Microsoft.VisualStudio.Component.VC.ATLMFC --lang zh-CN安装:vs_Community.exe --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --add Microsoft.VisualStudio.Component.VC.ATLMFC
相关文章推荐
- 安装配置mysql5.7非安装zip压缩包(参考官方文档最简单流程)
- prestodb安装配置 —参考prestodb官方文档配置
- Oracle官方文档(11G r 2)【安装需要参考的文档】
- arch linux的安装(参考官方文档,桌面安装还没搞好稍后搞定)
- Hbase-0.98.0全分布集群安装于配置(详细版参考自官方文档)
- arch linux设备(请参考官方文档,桌面安装没有找到一个好工作后)
- 安装k8s 1.9.0 资料:包含官方文档 安装实践 离线安装包 视频 课程
- ovirt官方安装文档 第六章
- ovirt官方安装文档 附录F
- Microsoft Visual Studio 2013 安装离线帮助文档
- 按照官方文档,安装minikube,kubectl,实现Kubernetes集群部署(采坑记)
- vs2017_enterprise正式版离线安装包bt下载
- View4.5测试参考文档4--VCenter4.1-安装和配置
- Spring4.x官方参考文档中文版——第21章 Web MVC框架(33)
- as参考文档(reference)的本地安装
- Spring4.x官方参考文档中文版——第21章 Web MVC框架(27)
- Spring4.x官方参考文档中文版——第21章 Web MVC框架(29)
- Xcode7.0(7A220) 安装离线文档
- xCode 4.2 安装离线帮助文档
- Codis 3.0.1 安装使用文档(官方)