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

QT GUI Application build unsuccessful with Visual Studio 2019

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 2.4.3
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Environment:
          - Qt 5.14.1 msvc 2017 x64
          - Visual Studio addin 2.4.3
          - Visual Studio Professional 2019 ( Version 16.4.5)
      [No Special Environment Variable are set on Windows machine x64]
    • Platform/s:
      Windows

      Description

      Environment :
          - Qt 5.14.1 msvc 2017 x64

          - Visual Studio addin 2.4.3

          - Visual Studio Professional 2019 ( Version 16.4.5)

      Start the Qt GUI Application Sample project and when I build/rebuild the project these build tasks errors were shown(even though VS has been restarted) - 

      1>------ Rebuild All started: Project: QtGuiApplication2, Configuration: Debug x64 ------
      1>Reading Qt configuration (D:\Qt\Qt5.14.1\5.14.1\msvc2017_64\bin\qmake.exe)
      1>uic QtGuiApplication2.ui
      1>rcc QtGuiApplication2.qrc
      1>moc QtGuiApplication2.h
      1> RCC: Warning: No resources in 'D:\Driver_dev\QtGuiApplication2\QtGuiApplication2.qrc'.
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: The "MultiToolTask" task failed unexpectedly.
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: System.ArgumentException: Property set method not found.
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at Microsoft.Build.CPPTasks.MultiToolTask.PopulateTaskFromSourceItem(Type taskType, ITaskItem source, TrackedVCToolTaskInterfaceHelper schedulingTask)
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at Microsoft.Build.CPPTasks.MultiToolTask.Execute()
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
      1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(364,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
      1>Done building project "QtGuiApplication2.vcxproj" -- FAILED.
      ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

      Please find the attached VS 2019 Solutions for further investigation.

       

        Attachments

        1. qt.PNG
          qt.PNG
          22 kB
        2. QtConsoleApplication1.7z
          16 kB
        3. QtGuiApplication2.7z
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            buddhika Buddhika Chathuranga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes