Visualstudio-docs: will Microsoft.VisualStudio.Workload.NativeDesktop contain all the listed sub components?

Created on 9 Apr 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

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++".


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

product-question

All 3 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnpwly picture jnpwly  Â·  3Comments

Campbellony picture Campbellony  Â·  4Comments

tpodolak picture tpodolak  Â·  3Comments

JeepNL picture JeepNL  Â·  3Comments

Crono1981 picture Crono1981  Â·  3Comments