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

Version 2.9.1.1 fails to build some Qt projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 2.9.1, 2.9.1 (rev.01)
    • None
    • Windows 10 21H2, MS VS 2019 16.11.16, Qt 5.12.10_msvc2017_64
    • Windows
    •  34a61f4a72 (qt-labs/vstools/dev)

    Description

      One of our Qt apps stopped building its debug version this week.

      Error message:

      C:\Users\Bar\AppData\Local\QtMsBuild\qt_globals.targets(786,7): error MSB4184: The expression "[System.IO.File]::ReadAllText(C:\Users\Bar\AppData\Local\QtMsBuild\qt.natvis.xml)" cannot be evaluated. Could not find file 'C:\Users\Bar\AppData\Local\QtMsBuild\qt.natvis.xml'.

       I've attached a portion of a detailed build log.

      It appears that in file "qt_globals.targets" for target QtNatvis, QtVersionMajor is not set. I don't know what to do about that. It is the only project with this problem, our other Qt projects build.

       

      Creating a new Qt Widget project also works. I can see substantive differences between our projects and a new project.

       

      Is there a recommended path to upgrade a Qt project other than recreating one from scratch?

      Attachments

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              spider-karma Gordon Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes