1. First, open visual studio's official website to download the latest installer.
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