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

Resources are not always compiled if resource file is modified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 2.3.0
    • 1.1.11
    • General
    • None
    • Windows 7, Qt4.8.0 and 4.8.2, Visual Studio 2010
    • 4258a3d3e19d1948e80cc5f4ea228e5f47d774bf

      Steps to reproduce with attached qrc_test example:
      1. Open project in Visual Studio
      2. Compile
      3. Modify file1.
      4. Compile (F7)
      -> qrc_xxx.cpp is modified

      5. Add file2 to qrc
      6. Compile (F7)
      7. Modify file2
      8. Compile (F7)

      -> qrc_xxx.cpp is not modified to reflect changes made to file2 because file2 dependency is not in *.vcxproj, only file 1 is. Even rebuilding the whole solution does not add file2 dependency to *.vcsproj -file.

      As a workaround you can import *.pro file again to regenerate *.vcxproj after you have added file to qrc, or add dependensy otherwise ti *.vcxproj.

        1. qrc_test.zip
          1 kB
          Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mecfc Miguel Costa
            qtcomsupport Qt Support
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes