Ошибка visual studio v143 сборка

This is similar to other questions where MS build tools could not be found but in my case I have already installed the build tools and I am using the correct version of VS for the specified tools (...

This is similar to other questions where MS build tools could not be found but in my case I have already installed the build tools and I am using the correct version of VS for the specified tools (VS2022) on Windows 10.

The error message «The build tools for v143 cannot be found» is occurring when I try to build a C++ project in VS2022 that was originally developed using VS2010 but was upgraded to use the v143 build tools.

I have the following installed:

VS Installer - Components (Compilers, Build Tools And Runtimes)

VS Installer - Components (Development Activities)

Can anyone explain why this is happening and provide a solution?

asked Jun 10, 2022 at 11:05

YungDeiza's user avatar

YungDeizaYungDeiza

2,0071 gold badge4 silver badges23 bronze badges

2

I suggest you refer to this issue:

I suggest you install VS2022 to use v143 build tools. Or you can
right-click on your project > Properties > General > Platform Toolset
and select the corresponding version for your VS.

Similarly, this FeedBack also has reference value.

answered Jun 13, 2022 at 2:46

Yujian Yao - MSFT's user avatar

3

check that VCTargetsPath points to c:Program Files (x86)Microsoft Visual Studio2022BuildToolsMSBuildMicrosoftVCv170

answered Jan 4 at 12:33

Marcel Čiernik's user avatar

1

I faced similar issue. I had VCTargetsPath set in my environment Variable. On deleting this variable, project build successfully

answered Jan 20 at 9:41

Robin Gupta's user avatar

Permalink

Cannot retrieve contributors at this time

XML-RPC Инструкция для Windows (VS)

Быстрый старт

  • Список вариантов (.pdf)
  • Шаблон ТЫК
  • Описание методов библиотеки XML-RPC ТЫК

Инструкция

Вам потребуется visual studio;

Проект разделен на 2 части:

  • Клиент (для открытия проекта двойной ЛКМ по /client/Client.vcxproj)
  • Сервер (для открытия проекта двойной ЛКМ по /server/Server.vcxproj)

Сначала следует запускать сервер, а после клиент (хотя, если использовать код ниже, то потребность спадает)

Пример моего кода(вар2):

Client

изображение

#include "xmlrpc/XmlRpc.h"
#include <conio.h>
#include <iostream>

using namespace XmlRpc;

using namespace std;

int main()
{
	system("chcp 1251");

	int port = 20000;
	string server_addres = "localhost";

	XmlRpcValue result;
	XmlRpcValue Arg;

	string value;
	int k = 0;
	cout << "Введите числа построчно, которые хотите сложить(напишите 'stop' для остановки): " << endl;
	while (true)
	{
		cin >> value;
		if (value != "stop")
		{
			Arg[k] = stoi(value);
			k++;
		}
		else
			break;
	}


	XmlRpcClient client(&server_addres[0], port);
	if (client.execute("127.0.0.1", Arg, result))
	{
		cout << endl << "Результат от сервера:" << result[0];
	}
	else 
	{
		cout << "Подключение не установлено, разрыв соединения" << endl;
	}
	client.close();
}

Server

изображение

#include "xmlrpc/XmlRpc.h"
#include <conio.h>
#include <iostream>

using namespace XmlRpc;
using namespace std;

class Sum : public XmlRpcServerMethod 
{ 
public:
    explicit Sum(XmlRpcServer* server) : XmlRpcServerMethod("127.0.0.1", server) {} 

    void execute(XmlRpcValue& params, XmlRpcValue& result) override 
    {
        cout << "Соединение с клиентом установлено, клиент передал следующие параметры:" << std::endl;
        int sum = 0;
        for (int i = 0; i < params.size(); i++)
        {
            std::cout << params[i] << std::endl;
            sum += (int) params[i];
        }
        result[0] = sum;
    }
};

int main() 
{ 
    system("chcp 1251");
    int port = 20000; 

    XmlRpcServer server;
    server.bindAndListen(port);

    Sum sumValues(&server);
  
    server.work(-1.0);
    server.exit();
    server.shutdown();
}

Возможные ошибки

Не удается найти средства сборки для v143…

Решение:
Если возникает ошибка (как на скриншоте), то нажимаем ПКМ по проекту(в моем случ «client»)->свойства->общие и выбираем в пункте «набор инструментов платформы» — установленную VS (см скриншот)
изображение


Если столкнулись с неизвестной ошибкой, пишите VK

Это страница Гитхаб, на которой я пытаюсь использовать msbuild.exe, но выдает следующую ошибку:

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 ==========

Есть ли 2 возможных варианта заставить это на GitHub работать?

ПРИМЕЧАНИЕ: Я бы предпочел вариант номер один.

  1. Обновить текущий код до стандартов 2019 года (не будет ли это сложно для новичка)?
  2. Заставьте текущие инструменты сборки v120 работать.
    • Мне не хватает зависимостей для его работы? Мои текущие установки Вид
    • Я проверил этот нить здесь, скачал Инструменты сборки Майкрософт 2013 и установил, но у меня та же проблема. Поскольку я использую 2019 год, я подумал, что лучше открыть новую тему.

Дополнительная информация

  • Вот скриншот того, что я сейчас установил в Visual Studio 2019.
    Вид.

  • В текущей версии нет возможности установить Инструменты сборки Майкрософт 2013 в самом приложении, поэтому установленная автономная версия не отображается здесь как вариант.

Перейти к ответу
Данный вопрос помечен как решенный


Ответы
3

Откройте keycastow.vcxproj с помощью блокнота, измените здесь <PlatformToolset>v120</PlatformToolset> на <PlatformToolset>v142</PlatformToolset>, чтобы использовать платформу VC++ 2019 или изменить версию через интерфейс

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.

In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.
In the left pane of the dialog box, expand Configuration Properties and then select General.
In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list (2019 — v142 in your case)
Choose the OK button.

Теперь вы компилируете проект, ничего не устанавливая.

Для VS2019 мне пришлось переключиться с Visual Studio Build на MSBuild Build, а затем указать, какая MSBuild.exe машина сборки будет работать. Значение по умолчанию было из другого набора инструментов платформы.

Измените Путь к MSBuild на правильный MSBuild.exe; например

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

Получил следующее сообщение об ошибке при попытке создать проект Visual Studio 2022.

Ошибка MSB8020: не удается найти инструменты сборки для v143 (набор инструментов платформы = ‘v143’). Для сборки с использованием инструментов сборки v143 установите инструменты сборки v143.

Ваше решение и это сработало для меня :-)

Visual Studio 2022 не указан в задаче конвейера решения сборки DevOps

Другие вопросы по теме

Понравилась статья? Поделить с друзьями:
  • Ошибка visit workshop mercedes
  • Ошибка uplay user getnameutf8
  • Ошибка virtualbox 0xc0000034
  • Ошибка uplay r164 dll
  • Ошибка video tdr failure windows 10 как исправить ошибку