Skip to content

Incremental builds broken with 3.5.0 #56

Description

@mariusvopel

Describe the bug
After updating from 3.4.1 to 3.5.0 incremental builds are no longer working for me. Even changing a single file caused a full project rebuild every time. Rolling back the extension to 3.4.1 (and removing the QtMsBuild directory beforehand) solved the issue immediately.
Briefly looking over the changes between releases I suspect 7703af7 where it appears that a newly introduced guid is now generated for every build. If this value ends up in variables that MsBuild treats as a general change, that could cause the problem I experienced.

To Reproduce
Steps to reproduce the behavior:

  1. Use extension version 3.5.0 and the corresponding QtMsBuild version.
  2. Build once.
  3. Touch one ordinary .cpp file.
  4. Build again.
  5. See that many unrelated source files are rebuilt.

Expected behavior
Only the touched source file and necessary downstream outputs are rebuilt.

Desktop (please complete the following information):

  • Qt VS Tool Version 3.5.0
  • Visual Studio version VS2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions