Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30373

Invalid VS project file created when two resource files defined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.4
    • Fix Version/s: 5.4.0
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Windows
    • Commits:
      6ce4342b8c44c533fbe471d925ff412cd3f3df46 04d3a89e20d49a3b5015b071bfdedc81973b090c

      Description

      qmake produces an invalid vcxproj file if there are two resource files defined for a project: one for debug and one for release. When opening the VS project there will be an error stating that the project file can not be loaded, there are multiple root elements. Same definition works when the project is compiled with Creator or in command line. The issue can be reproduced with the following definition:

      CONFIG(debug, debug|release) { 
          RESOURCES += application_d.qrc 
      } else { 
          RESOURCES += application.qrc 
      }
      

        Attachments

        For Gerrit Dashboard: QTBUG-30373
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes