同事新配的电脑,win7系统,装VS2015+Qt5.9.8,VS和Qt单独写程序编译运行都没有问题,但是在VS中新建Qt工程,编译报错如下:
Error 1 error : The source file for this compilation can be found at: "C:\Users\{winloginuser}\AppData\Local\Temp\{templatefile.txt}"
Error 2 error MSB3758: An error has occurred during compilation.
Error 3 error MSB4036: The "SetEnvironmentVariable" task was not found.
上网查解决方案,众说纷纭,只有一位博主的方案解决了本问题:
原博客地址:https://blog.csdn.net/u013255206/article/details/104481570
C:\Users\Administrator\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error : 此编译的源文件可以在以下位置找到:“C:\Users\Administrator\AppData\Local\Temp\88bf35cb-38ce-41c4-a691-27d54fc325ed.txt”