Cloning Your VS 2017 Packages – Microsoft – Channel 9 (blog)

Posted: April 3, 2017 at 8:25 pm

So, you've just installed VS 2017. Now you want to "copy" that setup and share what you installed with your coworkers, say you're trying to create a standard work or class setup...

How do you capture what you installed? You're sure there's some kind of command line switch or something, some way to export your currently installed VS 2017 setup/package/workload?

Nope.

There is a cool new VS 2017 Setup API, Setup Configuration, though, with code samples and everything. Maybe that can be used?

Yep!

Today's quick and dirty project from Tim Sneath uses the Setup Configuration API to capture and export your currently installed packages, generating the command line parameters that you can use to install a like looking VS setup on another PC.

timsneath/vs-clone

Clones a Visual Studio 2017 installation so it can be reproduced on another machine. Run this on a machine that already has Visual Studio 2017 installed, and it will interrogate the instance of Visual Studio to identify what workloads and components were selected, and attempt to create a command line that recreates the same installation.

Syntax:

...

... [Click through for the repo]

Read the original here:

Cloning Your VS 2017 Packages - Microsoft - Channel 9 (blog)

Related Posts