Within Visual Studio Installer, we now have the option to export and import the configuration settings. These configuration settings can then be shared with the team to import, which makes sure that all of them have the same set of workloads installed in their Visual Studio environment.
Select the version of Visual Studio and click on Export Configuration.
Click on Review Details to check the workloads part of the configuration
Here we can see .NET desktop and ASP.NET workload to be part of it.
The content of .vsconfig file
To import it, click on Import Configuration.
Select vsconfig file and click on Review Details
Click on Modify to install the workload/components.
The installation begins and installs the required components.
Hope it helps..