Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-1188

Qt/MSBuild got: The "MultiToolTask" task failed unexpectedly in vs2019 & vs2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 3.1.0 (rev.02)
    • Build-time integration
    • None
    •  Microsoft Visual Studio Community 2019 Version 16.11.34
      Microsoft Visual Studio Community 2022 Version 17.9.2

    Description

      I'm using Microsoft Visual Studio Community 2019 Version 16.11.34 to build an new project which generated by qt wizard , I got this error message, and I can't find a solution through google.

      ps: The CMake project can build success in vs2019 & 2022.

      Please help ! 

      Error    MSB4018    The "MultiToolTask" task failed unexpectedly.
      System.ArgumentException: Property set method not found.
         at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
         at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
         at Microsoft.Build.CPPTasks.MultiToolTask.PopulateTaskFromSourceItem(ITaskItem source, TrackedVCToolTaskInterfaceHelper schedulingTask)
         at Microsoft.Build.CPPTasks.MultiToolTask.CreateWorkItems(Type taskType, ITaskItem source, Dictionary`2 taskToSourcePropertyName, Dictionary`2 hashToCommandLine, String effectiveWorkingDirectory, String[] environmentVariables)
         at Microsoft.Build.CPPTasks.MultiToolTask.Execute()
         at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
         at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()    a1    D:\Tools\vs2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets    523    

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ali.demiralp Ali Can Demiralp
            wxf xf w
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes