How to install multiple compiler versions from Visual Studio 2019

Nagmote, Ajeet 1 Reputation point

Hi Team,

We would like to install multiple compiler version from Visual Studio 2019. We need to know how to achieve this desired goal. Our goal is to choose specific compiler as per our need to build.
For eg: we need to install 16.4.0, 16.9.2 and 16.9.4 version on the same agent. I tried to install build tools from 16.4.0 and it installed successfully and I checked compiler version and matched it. But when I tried to install 16.9.2 build tools, it override the compiler 16.4.0 (basically it update the existing compiler version). I believe it will also override 16.9.2 compiler if I go to install build tools from 16.9.4 version.

We need to know what would be best possible way for us to install these multiple compilers version on single machine and allow us freedom to choose out of them.

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
902 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 20,656 Reputation points Microsoft Vendor

    Hi @Nagmote, Ajeet ,

    Welcome to Microsoft Q&A!

    If you want to install multiple compiler versions, you can install the required version through Visual Studio Installer: open Visual Studio Installer > Modify > Individual components > Compilers, build tools, and runtimes.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments