Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
3.1.0 (rev.02)
-
None
Description
Steps to reproduce:
- Create a Qt 5 project.
- Upgrade it to Qt 6 in project settings.
- Call msbuild and observe that Qt 5 qmake is being used.
- Restart Visual Studio.
- Call msbuild and observe that Qt 6 qmake is being used.
The reason this occurs is the qtDir provided to QMakeExe is only set once during construction of QMake.cs. See https://github.com/qt-labs/vstools/blob/dev/QtVsTools.Core/QMake.cs#L29 and https://github.com/qt-labs/vstools/blob/dev/QtVsTools.Core/QMake.cs#L40 .