Install Visual Studio versions side-by-side

You can install Visual Studio on a computer that has an earlier or later version of Visual Studio already installed.

Before you install versions side-by-side, review the following conditions:

  • If you use Visual Studio 2017 to open a solution that was created in Visual Studio 2015, you can later open and modify the solution again in the earlier version as long as you haven't implemented any features that are specific to Visual Studio 2017.

  • If you try to use Visual Studio 2017 to open a solution that was created in Visual Studio 2015 or an earlier version, you might need to modify your projects and files to be compatible with Visual Studio 2017. For more information, see the Port, migrate, and upgrade Visual Studio Projects page.

Before you install versions side-by-side, review the following conditions:

  • If you use Visual Studio 2019 to open a solution that was created in Visual Studio 2017, you can later open and modify the solution again in the earlier version as long as you haven't implemented any features that are specific to Visual Studio 2019.

  • If you try to use Visual Studio 2019 to open a solution that was created in Visual Studio 2017 or an earlier version, you might need to modify your projects and files to be compatible with Visual Studio 2019. For more information, see the Port, migrate, and upgrade Visual Studio Projects page.

Before you install versions side-by-side, review the following conditions:

  • If you use Visual Studio 2022 to open a solution that was created in Visual Studio 2017 or Visual Studio 2019, you can later open and modify the solution again in the earlier version as long as you haven't implemented any features that are specific to Visual Studio 2022.

  • If you try to use Visual Studio 2022 to open a solution that was created in Visual Studio 2019 or an earlier version, you might need to modify your projects and files to be compatible with Visual Studio 2022. For more information, see the Port, migrate, and upgrade Visual Studio Projects page.

  • If you uninstall a version of Visual Studio on a computer that has more than one version installed, the file associations for Visual Studio are removed for all versions.

  • Visual Studio doesn't automatically upgrade extensions because not all extensions are compatible. You must reinstall the extensions from the Visual Studio Marketplace or the software publisher.

Install minor Visual Studio versions side-by-side

When upgrading from one minor version of Visual Studio to the next, the Visual Studio installer will, by default, update your current install to the latest version in that channel. For example, suppose 16.9.4 was just released. The installer will try to replace your current install of 16.9.3 (or lower) with 16.9.4, since both versions are part of the Visual Studio 2019 release channel. Replacing the older release with the newer release during update helps ensure older versions of Visual Studio aren't taking up room on your machine. However, in some specific cases, it might be helpful to install different minor release versions of Visual Studio side-by-side. For example, you may want to have both 16.9.3 and 16.9.4 on the same machine.

  1. Download the latest bootstrapper for Visual Studio 2017 version 15.9 from the Visual Studio previous versions page for the version that you would like to install side-by-side with your existing version of Visual Studio.

  2. Open the command prompt in administrator mode. To do this, open the Windows Start menu, type "cmd", right-click on the Command Prompt search result, and select Run as administrator. In the command prompt, change the directory to the folder where your Visual Studio bootstrapper file is located.

  3. Run the following command, specifying a new folder path for the installation location and replacing the .exe file name with the appropriate bootstrapper name for the version of Visual Studio you are installing. The .exe file name should match or be similar to one of the following files:

    • vs_enterprise.exe for Visual Studio Enterprise
    • vs_professional.exe for Visual Studio Professional
  4. Follow the installer dialogs to select the components you need for your installation. For more information, see Install Visual Studio.

  1. Download the Visual Studio 2019 bootstrapper file from either the Visual Studio downloads page or the Visual Studio 2019 Releases page for the minor version that you would like to install side-by-side with your existing version of Visual Studio.

  2. Open the command prompt in administrator mode. To do this, open the Windows Start menu, type "cmd", right-click on the Command Prompt search result, and select Run as administrator. In the command prompt, change the directory to the folder where your Visual Studio bootstrapper file is located.

  3. Run the following command, specifying a new folder path for the installation location and replacing the .exe file name with the appropriate bootstrapper name for the version of Visual Studio you are installing. The .exe file name should match or be similar to one of the following files:

    • vs_enterprise.exe for Visual Studio Enterprise
    • vs_professional.exe for Visual Studio Professional
    • vs_community.exe for Visual Studio Community
    vs_Enterprise.exe --installPath "C:\Program Files (x86)\Microsoft Visual Studio\<AddNewPath>"
    
  4. Follow the installer dialogs to select the components you need for your installation. For more information, see Install Visual Studio.

  1. Download the Visual Studio 2022 bootstrapper file from either the Visual Studio downloads page or the Visual Studio 2022 Releases page for the minor version that you would like to install side-by-side with your existing version of Visual Studio.

  2. Open the command prompt in administrator mode. To do this, open the Windows Start menu, type "cmd", right-click on the Command Prompt search result, and select Run as administrator. In the command prompt, change the directory to the folder where your Visual Studio bootstrapper file is located.

  3. Run the following command, specifying a new folder path for the installation location and replacing the .exe file name with the appropriate bootstrapper name for the version of Visual Studio you are installing. The .exe file name should match or be similar to one of the following files:

    • vs_enterprise.exe for Visual Studio Enterprise
    • vs_professional.exe for Visual Studio Professional
    • vs_community.exe for Visual Studio Community
    vs_Enterprise.exe --installPath "C:\Program Files\Microsoft Visual Studio\<AddNewPath>"
    
  4. Follow the installer dialogs to select the components you need for your installation. For more information, see Install Visual Studio.

.NET Framework versions and side-by-side installations

Visual Basic, Visual C#, and Visual F# projects use the Target Framework option in the Project Designer to specify which version of the .NET Framework that a project uses. For a C++ project, you can manually change the target framework by modifying the .vcxproj file. For more information, see the Version compatibility in the .NET Framework page.

When you create a project, you can specify which version of the .NET Framework the project targets in the .NET Framework list in the New Project dialog box.

For language-specific information, see the appropriate topic in the following table.

Language Topic
Visual Basic Application Page, Project Designer (Visual Basic)
Visual C# Application Page, Project Designer (C#)
Visual F# Develop with Visual F# in Visual Studio
C++ How to: Modify the target framework and platform toolset

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 an installation chat (English only) support option for installation-related issues.

Here are a few more support options:

See also

Language Topic
Visual Basic Application Page, Project Designer (Visual Basic)
Visual C# Application Page, Project Designer (C#)
Visual F# Develop with Visual F# in Visual Studio
C++ How to: Modify the target framework and platform toolset

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 an installation chat (English only) support option for installation-related issues.

Here are a few more support options:

See also