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

    • Windows
    • 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

        1. image-2022-06-23-14-47-40-861.png
          152 kB
          Miguel Costa
        2. image-2022-06-23-14-56-20-357.png
          44 kB
          Miguel Costa
        3. Nevron Hospitality Interface.vcxproj
          70 kB
          Waldemar Haszlakiewicz
        4. testapp.zip
          2 kB
          Sergey Enns

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: