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

Missing QtVersionMajor macro (2.9.1.1 .. in Create Issue the 2.9.1.1 is not defined)

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      8ba7c6d37a (qt-labs/vstools/dev)

      Description

      Hi guys.

      Today 2.9.1.1 was automatically installed in VS2022 and my qt projects stopped working.

      In 'qt_globals.targets' macro QtVersionMajor is used but is not defined anywhere in the VS project.

      So at the end of the build I've received:

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

      So to bypass the issue I've added a 'QtVersionMajor' user macro to the project.
      It's not a proper solution but at least it will work temporarily.

      BrW

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mecfc Miguel Costa
              Reporter:
              waldemarh Waldemar Haszlakiewicz
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes