How to install multiple compiler versions from Visual Studio 2019

Nagmote, Ajeet 1 Reputation point
2022-03-31T08:44:07.99+00:00

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.
1,041 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,766 Reputation points Microsoft Vendor
    2022-04-01T03:46:29.193+00:00

    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.

    Sincerely,
    Anna
    *
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.