Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
1.2.4
-
None
-
Visual Studio 2012, Qt Visual Studio Add-in 1.2.4, Qt 5.5.0, Windows 7
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.