In solution explorer select the project node. Right click and select properties. When the project property page opens make sure that all configurations/all platforms is selected. Then you can set the Configuration->General->Platform Toolset to v142 for VS2019. This is where you make the change -
How Do I Retarget a C++ Application?
Hello Folks:
Developing on Windows 10 Pro on the Extended Security Update program, VS 2019 Community Version 16.11.53, all C++.
I'm getting the following error.
error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found.
To build using the v143 build tools, please install v143 build tools.
Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or
right-click the solution, and then selecting "Retarget solution".
I've used "Retarget Solution" in the Project's menu a few times.
Here the Project tab's menu:
Here is the menu from selecting on the main project in the Solution explorer:
Is anybody seeing "Retarget solution"in either of these menus? I'm not.
Rescan solution doesn't seem to do much.
Suggestions?
Thanks
Larry
Windows development | Windows API - Win32
2 answers
Sort by: Most helpful
-
-
Jay Pham (WICLOUD CORPORATION) 3,060 Reputation points Microsoft External Staff Moderator
2025-12-03T06:44:43.87+00:00 Hi @Larry ,
The error occurs because your project is set to Platform Toolset v143 (VS2022), but you're using VS2019 which requires v142.
Quick Fix:
- Right-click your project → Properties
- Set Configuration:
All Configurations| Platform:All Platforms - Go to: Configuration Properties → General → Platform Toolset
- Change to: Visual Studio 2019 (v142)
- Click OK, then right-click project → Clean and Rebuild
About "Retarget Solution": This option appears when you right-click the Solution node (top level in Solution Explorer), not the project node.
Reference: How to Modify Platform Toolset
Please let me know if this resolves the MSB8020 error! If my answer was helpful - kindly follow the instructions here so others with the same problem can benefit as well.