Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
3.1.0 (rev.02)
-
None
-
Microsoft Visual Studio Community 2019 Version 16.11.34
Microsoft Visual Studio Community 2022 Version 17.9.2
-
-
it's same with
QTVSADDINBUG-989
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