vs offline download the installation package

1. First, open visual studio's official website to download the latest installer.

https://www.visualstudio.com/zh-hans/?rr=https%3A%2F%2Fwww.baidu.com%2Flink%3Furl%3Dc-fIyWb4W7axqze6Thz7CPz4pAA597mZVLjMDkidX5f7rvUhyaRQLtSXkA4eKr9H%26wd%3D%26eqid%3Daffaf8480003f571000000035a2813d5

 

2. Create a new directory on the local computer, including directories and content vs offline package installer (note disk space, offline package contents about 30G)

 

3. Open the cmd command line in the current directory, enter

vs_community__1466151789.1548061860.exe --layout D: \ vs2019 \ vs offline package --lang zh-CN

 

 

 

 

4. patiently wait for the download to complete

 Explain what the above command line is:

vs_community__1466151789.1548061860.exe: this is to download the installer;

layout D: \ vs2019 \ vs offline package: to the storage location of the offline installation package;

lang zh-CN: Download the specified language version;

The usual language version has:

en-US: English (United States),

zh-CN: Chinese (Simplified),

zh-TW: Chinese (Traditional)

ja-JP: Japanese

If you want to download more than one version of the installation package can not even write this after lang, separated by a space.

-lang en-US zh-CN ja-JP, at the same time it will download in English, Chinese and Japanese language pack.

 

This example uses a vs2019, of course, this method is also applicable to other versions vs

https://docs.microsoft.com/zh-cn/visualstudio/releases/2019/system-requirements

 

Offline official installation documentation: https://docs.microsoft.com/zh-cn/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019&redirectedfrom=MSDN

Guess you like

Origin www.cnblogs.com/HandsomeBlog/p/11532424.html