I've used the following command to create an offline installation:
vs_professional.exe --layout e:\vs2017lite --lang en-US --add Microsoft.VisualStudio.Workload.NativeDesktop
and the result folder (e:\vs2017lite) is about 1.03GB.
Then I run the vs_setup.exe in the folder and select the "Desktop development with C++" to install. But the installer still prompts me that there are about 1.61GB to be downloaded. Why?
Update: if I don't specify any workload, the offline folder would be about 40.6GB and it won't prompt to download anything before installing "Desktop development with C++".
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@yingang Thanks for your inquiry @tydunkel FYI
@yingang When adding workloads to a layout the recommended and optional components are not included by default. When selecting a workload manually in the VS Installer, recommended components are included by default. The extra downloads needed likely comes from these recommended workloads.
When creating the layout, recommended components can be included with --includeRecommended. Otherwise, if they are not wanted, you can deselect all of the components that appear under the "Desktop development with C++" node in the "Installation details" of the installer.
See Customize a layout for more details.
@tydunkel, thanks for your elaborate explanation.