C++ workload not working

Yashesvi Raina 1 Reputation point
2021-06-12T05:35:42.203+00:00

I have been using VS 2019 with the .NET workload for around a year and decided to install the Desktop C++ workload to develop some OpenGL apps. Whenever I choose the "Desktop Development with C++" workload and click on install it starts the process but in the middle a message pops up saying "tried downloading this package nine times and failed" then it has three buttons Continue, Retry and Cancel. which ever I press and proceed does not help. Instead my entire Visual Studio gets damaged and I had to reinstall it three times.
Finally i had to download VS 2017 with C++ workload and works perfectly fine. Please tell me how to fix the VS2019 C++ workload problem.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,742 questions
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,047 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
    2021-06-14T08:30:43.073+00:00

    Hi @Yashesvi Raina ,

    Welcome to Microsoft Q&A!

    The issue has been fixed currently, please repair the installation in VS installer and update your Visual Studio to the latest release.
    If you do a clean installation of Visual Studio, please download the latest version of VS2019 from the Microsoft Download page.
    Then, select Desktop development with C++ workload and try again.

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      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.