VS2019+Qt5.14 qmake编译错误

最近更新的Qt5.14在VS2019下出现编译错误:

C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018: The "GetVarsFromMakefile" task failed unexpectedly.
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018: System.ArgumentException: An item with the same key has already been added.
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at InlineCode.GetVarsFromMakefile.Execute() in c:\Users\Lilong\AppData\Local\Temp\d0iogpgt.0.cs:line 71
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
C:\Users\Lilong\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

目前发布的vs addin 2.4.2版本存在问题,可以下载安装2.4.2 rev.9版本解决这个问题:
https://download.qt.io/development_releases/vsaddin/2.4.2/
BUG描述

你可能感兴趣的:(qt,Visual,Studio)