dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Groan... VS2019 has lost my platform toolsets

  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,572

    Groan... VS2019 has lost my platform toolsets

    A few months ago I updated from VS2015 to VS2019 and it installed 2 x VC toolsets for me (one for VS2015 and one for VS2019).

    Then (yesterday) I realised that Visual Studio can use the Clang C++ compiler (as an alternative to Visual C++) so I decided to give that a try. I installed Clang (using VS's installer) but it seems to have 'lost' my previous toolsets. Whenever I load a VC project now, the Platform Toolset shows up as Visual Studio 2015 (v140) (not installed). If I drop down that list, it also shows me LLVM (clang-cl) but everything else has gone and I see no compiler or linker settings... (so none of my projects can be compiled any more )

    I didn't ask VS to uninstall my Platform Toolsets so I assume they're still there somewhere. How do I make Visual Studio find them again?

    Name:  Capture7.jpg
Views: 68
Size:  27.9 KB
    "A problem well stated is a problem half solved. - Charles F. Kettering

  2. #2
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,903

    Re: Groan... VS2019 has lost my platform toolsets

    In VS Installer, Modify/Individual Components/Compilers. You should have MSVC V142 VS 2019 C++ x64/x86 build tools ticked. if not, tick it. Also check that everything else you need is also ticked. If it already is, try More/Repair.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2019 (16.3.9)

  3. #3
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,572

    Re: Groan... VS2019 has lost my platform toolsets

    Thanks 2kaud. For some strange reason, the VS2015 toolset had gotten uninstalled. I ticked it and re-installed and everything seems to have come back now.

    FWIW I've built both a simple Windows app and a Console app (firstly using VC++ 2019 and then secondly using Clang) and both builds worked fine (I could even use the debugger and set breakpoints etc in the Clang build!!)
    "A problem well stated is a problem half solved. - Charles F. Kettering

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,146

    Re: Groan... VS2019 has lost my platform toolsets

    So the clang install messed up VS?

  5. #5
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,572

    Re: Groan... VS2019 has lost my platform toolsets

    Yes - if you look at my screenshot (left hand side) you'll see that there are no options showing for compile or link, or pre/post build steps etc - and it was the same, even for Clang. Everything had gone. So installing Clang screwed things up in a big way. Fortunately it was a simple fix.!
    "A problem well stated is a problem half solved. - Charles F. Kettering

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)