jberezanski / ChocolateyPackages

Chocolatey packages maintained by me
MIT License
86 stars 52 forks source link

What is the visualstudio2022 workload name for Microsoft.NetCore.Component.SDK? #150

Open TraGicCode opened 4 months ago

TraGicCode commented 4 months ago

Hey @jberezanski ,

I can't seem to find it but what is the name of the chocolatey package for the workload called Microsoft.NetCore.Component.SDK for visualstudio build tools 2022?

jberezanski commented 4 months ago

Microsoft.NetCore.Component.SDK is a component, not a workload. This page shows the list of all components of Build Tools 2022 and which workloads they are included in.

In this case, Microsoft.NetCore.Component.SDK will be found in:

Chocolatey packages for each workload are named visualstudio2022-workload-<name>, where is the last part of the workload id (after the last dot), so for example the package for the "Azure development build tools" workload is visualstudio2022-workload-azurebuildtools.

If the component is marked as "Required" or "Recommended" for the given workload, it will be installed automatically with the workload when you install the Chocolatey package. If the component is marked as "Optional", you need to pass --includeOptional in package parameters (e.g. choco install visualstudio2022-workload-azurebuildtools --package-parameters "--includeOptional").