Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to extract list of Visual studio 2017 installed components

What would be the best way to list installed components of my Visual studio 2017 installation ?

I know I can start the Visual Studio Installer > Modify and review the Workloads or Individual components there.

But there doesn't seem to be a way to extract the list of installed components to a txt file ?
(I'm making screenshots now to document what I have)

Is there any way ? E.g. can I run the Windows Studio Installer commandline perhaps ?

like image 551
AardVark71 Avatar asked May 12 '17 08:05

AardVark71


People also ask

How do I see what packages are installed in Visual Studio?

Visual Studio installs the package and its dependencies in the project. When installation is complete, the added packages appear on the Installed tab. You can also find packages in the Dependencies > Packages node of your project in Solution Explorer.

How do I see installed workloads in Visual Studio?

In the Visual Studio Installer, choose the Workloads tab, and then select or deselect the workloads that you want. To add more components than a workload installs, choose the Individual components tab, and then select or deselect the individual components that you want.

What is Vswhere?

vswhere is designed to be a redistributable, single-file executable that can be used in build or deployment scripts to find where Visual Studio - or other products in the Visual Studio family - is located.

Can I move Visual Studio to another drive?

If you've already installed it and want to change the location, you must uninstall Visual Studio and then reinstall it. In the Shared components, tools, and SDKs section, select the folder where you want to store the files that are shared by side-by-side Visual Studio installations.


2 Answers

With newer versions (at least 2019) you can export your settings directly from the VS Installer. In the "More" dropdown you have the possibility to export and import the current configuration for each individual VS install you have on your machine.

Source: https://docs.microsoft.com/en-us/shows/visual-studio-toolbox/visual-studio-installation-and-customization (starting at 07:51)

like image 81
Markus Deibel Avatar answered Oct 12 '22 17:10

Markus Deibel


Install powershell 5 from the WMF 5.0

In posh console run these 2 commands:

Install-Module VSSetup -Scope CurrentUser (allow nuget to install a package)

(get-vssetupinstance | select-vssetupinstance).packages

like image 29
Peteski Avatar answered Oct 12 '22 18:10

Peteski