Qt VS Tools在Visual Studio 2019中不起作用

时间:2019-10-09 03:55:14

标签: visual-studio qt

我已经从该文件qt-opensource-windows-x86-5.13.1.exe安装了Qt,并从该文件qt-vsaddin-msvc2019-2.4.1.vsix安装了Qt VS Addin

不幸的是,Qt VS Tools在Visual Studio 2019中不起作用。 enter image description here

如果您有兴趣,这里是完整的ActivityLog.xml。 https://pastebin.com/AXfCEXuF以下是ActivityLog.xml中与Qt相关的错误

Still unable to load MEF component DLL: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) C:\USERS\DNDT\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_AE768EF4\EXTENSIONS\U15MJQMI.ZYG\QtVsTools.dll    
SetSite failed for package [Vsix]Source: 'QtVsTools' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=16.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Threading, Version=16.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'at QtVsTools.Vsix.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass19_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__68.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)at Microsoft.VisualStudio.Services.VsTask.GetResult() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

安装“ Qt Visual Studio工具2.4.2”我目前在Qt 15.13.2中使用它,它是为VS17构建的,但是它可以在VS19上使用。