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

When generating a vcxproj file it can end up with extra whitespaces in the custom build commands which causes it to always rebuild

    XMLWordPrintable

Details

    • b182e1e8dd3f00bd00927897ea0b32e65e08b662

    Description

      With Qt Add-in for Visual Studio during the qmake project generating some white-spaces are included into the vcxproj-file.

      The problem seems to have its effect on rebuilding the entire project even if the very small changes were done in a source code.

      The problem appears only when the user is trying to create a qmake project with addin in Visual Studio. From the command-line the vcxproj is generated without any additional white-spaces.

      When build-process is started, the VS is throwing this warning

      1>C:\Program Files
      (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): warning
      MSB8015: Forcing a rebuild of all source files due to the contents of
      "C:\Users\luroddis\Desktop\TestFilesLukeRoddis -
      Copy\Win32\Debug\custombuild.command.1.tlog

      Two generated vcxproj-files can be found from attachments. To find the white-spaces mentioned above, the one should look for the <Command
      Condition> -item

      Steps to reproduce:
      1. Build the project attached
      2. Make some changes in the project files
      3. Choose the build-command from the menu
      4. In looks you should be able to see the warning mentioned in description

      Attachments

        1. TestFiles.zip
          1 kB
        2. testCommandLine.vcxproj
          13 kB
        3. testVSAddin.vcxproj
          13 kB

        Activity

          People

            mecfc Miguel Costa
            kileppal Kimmo Leppälä
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: