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

Duplicate .ts file sections added to .vcproj file when importing Qt's .pro file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 2.8.1 (rev.06)
    • 1.2.4
    • General
    • None
    • Visual Studio 2012, Qt Visual Studio Add-in 1.2.4, Qt 5.5.0, Windows 7
    • 376339fc9 (dev)

    Description

      When I try to open a .pro file in Visual Studio with Qt Visual Studio Add-in I get project imported but it fails some way in generating duplicate sections of all listed TestApp_XX.ts files.

      I have these lines in the pro file for translations:
      QMAKE_EXTRA_COMPILERS += lrelease
      TRANSLATIONS += Language/TestApp_*.ts
      lrelease.input = TRANSLATIONS
      lrelease.output = $${TARGET_DESTDIR_FS}/Language/${QMAKE_FILE_BASE}.qm
      lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -compress -silent ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
      lrelease.CONFIG += no_link target_predeps
      PRE_TARGETDEPS += compiler_lrelease_make_all

      Problem is that generated file contains duplicate entries of <ItemGroup> with all those .ts file entries. These duplicate section causes that Visual Studio cannot load that project without removing other .ts file entries. There is example what is happening to the vcproj file and my Qt Visual Studio Add-in settings.

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            taanders Tapio Andersson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes