Import or export installation configurations

You can configure Visual Studio across your organization with installation configuration files. To do so, simply export the workload and component information to a .vsconfig file by using the Visual Studio installer. You can then import the configuration into new or existing installations, and share them with others, too.

Here's how.

Note

This functionality is available only in Visual Studio 2017 version 15.9 and later.

Export a configuration

You can choose to export an installation configuration file from either a previously installed instance of Visual Studio or one that you're currently installing.

  1. Open the Visual Studio Installer.

  2. On the product card, choose the More button, and then select Export configuration.

    Export configuration from the product card in the Visual Studio installer

  3. Browse to or type the location where you want to save your .vsconfig file, and then choose Review details.

    Export configuration from the Visual Studio installer

  4. Make sure you've got the workloads and components that you want, and then choose Export.

Import a configuration

When you're ready to import an installation configuration file, follow these steps.

  1. Open the Visual Studio Installer.

  2. On the product card, choose the More button, and then select Import configuration.

  3. Locate the .vsconfig file that you want to import, and then choose Review details.

  4. Make sure you've got the workloads and components that you want, and then choose Close.

Automatically install missing components

New in Visual Studio 2019: When you save a .vsconfig file to your solution root directory and then open a solution, Visual Studio automatically detects which components are missing and prompts you to install them.

Solution Explorer suggests additional components

You can also generate a .vsconfig file right from Solution Explorer.

  1. Right-click on your solution file.

  2. Choose Add > Installation Configuration File.

  3. Confirm the location where you want to save the .vsconfig file, and then choose Review details.

  4. Make sure you've got the workloads and components that you want, and then choose Export.

Note

For more information, see the Configure Visual Studio across your organization with .vsconfig blog post.

Get support

Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.

We also offer a live chat (English only) support option for installation-related issues.

Here are a few more support options:

See also