Solved Qt VS Tools Kills All Other Projects
-
After adding the Qt VS Tools 2.3.2 to Visual Studio 2015, all of my non-Qt projects encounter this error when trying to build:
Qt VS Tools
The following error occurred:
There's no Qt version assigned to this project for platform Win32. Please use the 'change Qt version' feature and choose a valid Qt version for this platform.
OK
This does not go away even though the Qt Options shows this:
Of course it is for some reason impossible to set up Qt for Win32 anyway, as it only supports x64, so it really doesn’t matter what Qt settings are available, they should be entirely shut off.
How can I go back to working normally on all of my normal projects and have to deal with Qt settings only in Qt projects?
L. Spiro
-
@l-spiro said in Qt VS Tools Kills All Other Projects:
After adding the Qt VS Tools 2.3.2 to Visual Studio 2015, all of my non-Qt projects encounter this error when trying to build
Does this affect your old projects only (those which existed before you installed Qt VS Tools)? Does it also affect new projects that you create after installing Qt VS Tools?
-
It does not affect a new dummy project I have just created after having installed Qt VS Tools.
Recreating all of my old projects is unreasonable.L. Spiro
-
@l-spiro said in Qt VS Tools Kills All Other Projects:
It does not affect a new dummy project I have just created after having installed Qt VS Tools.
It sounds like your existing project config files now contain references to Qt for some reason, but new non-Qt projects are created correctly.
I was unable to reproduce this issue on my MSVC 2019 setup (which did not have Qt VS Tools installed before).
As a workaround, try:
- Restore your solution and config files (*.sln, *.vcxproj, *.vcxproj.user, *.vcxproj.filters) from a backup (e.g. source control), OR
- Reboot your PC. Edit your *.vcxproj (after making a backup) and delete the top-level reference to Qt, example:
<PropertyGroup Label="Globals"> <ProjectGuid>{B12702AD-ABFB-343A-A199-8E24837244A3}</ProjectGuid> <Keyword>Qt4VSv1.0</Keyword> <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> </PropertyGroup>
-
So it turns out I only had this problem because the project had used Qt long long ago, so there were some references like the one you posted in the project file.
Removing it did indeed help.Thank you,
L. Spiro -
@l-spiro said in Qt VS Tools Kills All Other Projects:
So it turns out I only had this problem because the project had used Qt long long ago, so there were some references like the one you posted in the project file.
Glad to hear you were able to track down and resolve the issue!
Happy coding.