Ошибка msb8020 visual studio

title description ms.date ms.topic f1_keywords dev_langs author ms.author manager ms.technology ms.workload

MSBuild error MSB8020

MSBuild error MSB8020 occurs when the platform toolset required by the build isn’t installed.

10/29/2021

error-reference

MSB8020

C++

ghogen

ghogen

jmartens

msbuild

multiple

MSBuild error MSB8020

MSB8020: The build tools for toolset-name (Platform Toolset = ‘platform-toolset‘) cannot be found. To build using the platform-toolset build tools, please install toolset-name 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».

To resolve this issue, upgrade the project to use the current Visual Studio toolset, or use the Visual Studio Installer to install the specified build toolset. For more information, see Modify Visual Studio. Use the Individual components tab in the installer to choose specific platform toolsets.

This is the GitHub page where I’m trying to use msbuild.exe only it’s throwing this following error:

1>------ Build started: Project: keycastow, Configuration: Debug|Win32 ------
C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2013 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install Visual Studio 2013 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".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Is there 2 possible options to get this on GitHub to work?

NOTE: I would prefer option number one.

  1. To update the current code to 2019 standards (would that be difficult for a beginner)?
  2. Get the current v120 build tools to work.
    • Am I missing dependencies for it to work? My current installs View
    • I’ve checked this thread here and downloaded Microsoft Build Tools 2013 and installed but I’m having the same problem. Seeing as I’m using 2019, I thought it best to open up a new thread.

Additional info

  • Here’s a screenshot of what I’ve currently installed in Visual Studio 2019.
    View.

  • There are no options in the current version to install Microsoft Build Tools 2013 in the app itself so the installed standalone version doesn’t appear here as an option.

asked Jun 23, 2019 at 16:21

Ste's user avatar

2

Open the keycastow.vcxproj with notepad, change here the <PlatformToolset>v120</PlatformToolset> to <PlatformToolset>v142</PlatformToolset> to use the VC++ 2019 platform or change the version via UI

In Visual Studio, in Solution Explorer, open the shortcut menu for
your project (not for your solution) and then choose Properties to
open your project Property Pages dialog box.

  1. In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.

  2. In the left pane of the dialog box, expand Configuration Properties and then select General.

  3. In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list (2019 — v142 in your case)

  4. Choose the OK button.

Now you compile the project without installing anything.

answered Jun 23, 2019 at 18:46

magicandre1981's user avatar

magicandre1981magicandre1981

27.7k5 gold badges86 silver badges127 bronze badges

3

For VS2019, I had to switch from a Visual Studio Build to an MSBuild Build and then specify which MSBuild.exe the build machine would run. The default was from a different PlatformToolset.

MSBuild Solution Options

Change the Path to MSBuild to the correct MSBuild.exe; e.g.

C:Program Files (x86)Microsoft Visual Studio2019EnterpriseMSBuildCurrentBinamd64MSBuild.exe

answered Apr 5, 2021 at 21:26

ergohack's user avatar

ergohackergohack

1,24815 silver badges26 bronze badges

Got the following error message trying to build a Visual Studio 2022 project

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.

Your solution and this one worked for me :-)

Visual Studio 2022 not listed in devops build solution pipeline task

answered Mar 15, 2022 at 13:45

user18473236's user avatar

1

  • Remove From My Forums
  • Question

  • Hi,

    I am trying to build a solution using MSBuild but I get an error seemingly indicating some tools are not installed. I looked in the directories and they indeed seem to be nowhere found. The message I get is:

    C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
    ools for v141 (Platform Toolset = ‘v141’) cannot be found. To build using the v141 build tools, please install v141 bui
    ld tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
    ck the solution, and then selecting «Retarget solution». [C:UsersJuan DentC++ DevelopmentSource Componentsmetashel
    lmetashell3rdtemplightbuildZERO_CHECK.vcxproj]

    and the MSBuild directory v4.0 only has v110, v120, v140 — not v141!

    Thanks,

    Juan 


    Juan Dent

Answers

  • Disable the MSBuild parallel build options?

    This will only let MSBuild start one project build at a time.


    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because
    the major point of my posts is to aid in the learning process.

    • Marked as answer by

      Sunday, January 21, 2018 12:26 AM

Проект не запускается и выдаёт вот такую ошибку:

Ошибка MSBuild MSB8020
Не удалось найти средства сборки для v142 (набор средств платформы = «v142»). Чтобы выполнить сборку с помощью версии v142 средств сборки, установите средства сборки v142. Также можно выполнить обновление до текущих средств Visual Studio, выбрав меню «Проект» или щелкнув правой кнопкой мыши решение, а затем выбрав «Изменить целевую платформу решения».

При нажатии на «Изменить целевую платформу решения» появляется это окно. Но при изменении версии пакета ничего не меняется. Ошибка остаётся.
5d05edda0ab7e841437481.jpeg

Подскажите, пожалуйста, что делать?

This blog article shows you one of the possible ways to find the error below.

“Severity    Code    Description    Project    File    Line    Suppression State

Error    MSB8020    The build tools for v142 (Platform Toolset = ‘v142’) cannot be found. To build using the v142 build tools, please install v142 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”.”

One of the reasons is, you developed the C++ program using newer Visual Studio. Here is Visual Studio 2019. What you need to do is, right click the project. Go to Properties. Select the right Platform Toolset.

You might then face another error like the one below.

“Severity    Code    Description    Project    File    Line    Suppression State

Error    MSB8036    The Windows SDK version 10.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting “Retarget solution”.”

Right click the project again. Go to Properties. Select the right Windows SDK Version.

About chanmingman

Since March 2011 Microsoft Live Spaces migrated to WordPress (http://www.pcworld.com/article/206455/Microsoft_Live_Spaces_Moves_to_WordPress_An_FAQ.html) till now, I have is over 1 million viewers. This blog is about more than 50% telling you how to resolve error messages, especial for Microsoft products. The blog also has a lot of guidance teaching you how to get stated certain Microsoft technologies. The blog also uses as a help to keep my memory. The blog is never meant to give people consulting services or silver bullet solutions. It is a contribution to the community. Thanks for your support over the years.

Ming Man is Microsoft MVP since year 2006. He is a software development manager for a multinational company. With 25 years of experience in the IT field, he has developed system using Clipper, COBOL, VB5, VB6, VB.NET, Java and C #. He has been using Visual Studio (.NET) since the Beta back in year 2000. He and the team have developed many projects using .NET platform such as SCM, and HR based applications. He is familiar with the N-Tier design of business application and is also an expert with database experience in MS SQL, Oracle and AS 400.

  • Ошибка msa xiaomi что это
  • Ошибка ms windows store assoc
  • Ошибка ms settings personalization background windows 10
  • Ошибка ms dos при копировании папки
  • Ошибка mr 6327 мерседес аксор