Не могу начать писать плагины SAMPFUNCS.
Установил Visual Studio, распаковал проект SFPlugin и открыл. Вот ошибка, ни как не могу понять с чем связана ошибка и как его исправить.
1>C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2012 - Windows XP (Platform Toolset = 'v110_xp') cannot be found. To build using the v110_xp build tools, please install Visual Studio 2012 - Windows XP 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".
1>Сборка проекта "SFPlugin.vcxproj" завершена с ошибкой.
Ссылка на SFPlugin https://blast.hk/attachments/22939/
Я еще заметил что в название проекта написано Visual Studio 2012, хотя у меня установлен 2019. Вот скрин
Если нажать на правую кнопку мыши по проекту выходит вот это.
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.
- 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
-
Marked as answer by
When I right click the project and go to settings, I can clear see that the Platform Toolset is set to Visual Studio 2015 (v140). However, when I go to compile the project, the error says
C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(54,5): error MSB8020: The build tools for Visual Studio 2012 (Platform Toolset = 'v110') cannot be found. To build using the v110 build tools, please install Visual Studio 2012 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 tried doing the recommendation, and «retarget solution,» but that does nothing.
If I open the references .targets file, I see no references to V140. I tried changing all of the references from V110 (as an experiment) to V140, but when I went to recompile, it just changed them all back to V110 and generated the same error.
Any ideas on how to stop VS from targeting V110 when it says that it is targeting V140?
Проект не запускается и выдаёт вот такую ошибку:
Ошибка MSBuild MSB8020
Не удалось найти средства сборки для v142 (набор средств платформы = «v142»). Чтобы выполнить сборку с помощью версии v142 средств сборки, установите средства сборки v142. Также можно выполнить обновление до текущих средств Visual Studio, выбрав меню «Проект» или щелкнув правой кнопкой мыши решение, а затем выбрав «Изменить целевую платформу решения».
При нажатии на «Изменить целевую платформу решения» появляется это окно. Но при изменении версии пакета ничего не меняется. Ошибка остаётся.
Подскажите, пожалуйста, что делать?