Environment:
windows 7 + VS2013 + Qt5.3.0 + addin1.2.4
Analyse:
.vcxproj.user is user profile, saving user data.
when you create a QT application project, you will Add the following two lines of content to the. vcxproj.user file .
<QTDIR>E:\Qt5.3.0\x64</QTDIR>//indicates the absolute path of the Qtdir
<localdebuggerenvironment>path= "$ (qtdir) \bin\%3b$ (PATH) </localdebuggerenvironment>//JOIN environment variable
vs this two-line content obtains the Qtdir path, before joins the running environment.
So when uploading the code, you need to upload . vcxproj.user file.
When the Qtdir is not added as a Global environment variable:
The contents of the Qtdir path are written to the. vcxproj.user file and are only written when the QT project is created, so after you delete the. vcxproj.user file, you are prompted to run the compilation program:
>moc ' ing ***.h ...
The > system could not find the path specified.
Last popup: Error MSB6006: "cmd.exe" exited with code 3.
When the QT4 project is transplanted to QT5:
because QT4 did not save Qtdir to .vcxproj.user, So, will also pop error MSB6006:" cmd.exe "exited with code 3. Error.
Workaround, simply add the two lines above to the corresponding location in the newly generated vcxproj.user file.
VS integrated Qt, vs. vcxproj.user files in relation to QT