我已经安装了'qt-vsaddin-msvc2017-2.3.0'以在Visual Studio 2017中使用QT,但是安装后存在一些问题。第一件事是我无法在Qt VS Tools中修改QT项目设置,因为它是灰色的。重新启动VS后,它一直显示“ Qt Visual Studio工具版本2.3.2:正在初始化...”,并且没有继续。安装qt-vsaddin时会错过什么吗?
答案 0 :(得分:1)
回答这个问题有点晚,因为我今天自己遇到了这个问题。问题是您的VS2017并非最新-您需要至少版本15.8;目前发布15.9。奇怪的是,您的ActivityLog.xml
看起来与Pavel Celba的回答类似,因为在加载特定版本的Microsoft.VisualStudio.Threading assembly
时遇到了麻烦。为了解决此问题,您将必须执行以下两项操作之一:
一旦您安装了2.2.2或获得了Visual Studio 15.9更新,它应该可以正常工作。
我也遇到了这个问题,因为我的VS版本是15.4,但是我无法连接到该计算机上的Internet。
答案 1 :(得分:0)
尝试安装qt-vsaddin-msvc2017-2.3.2.vsix。如果失败,则可能需要重新安装VS 2017。
答案 2 :(得分:0)
我们在这里有同样的问题-显示的错误是:
<entry>
<record>334</record>
<time>2019/02/25 12:48:44.893</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Vsix]Source: 'QtVsTools' Description: Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.8.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=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 at QtVsTools.Vsix.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.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].
</description>
<guid>{15021976-647E-4876-9040-2507AFDE45D2}</guid>
<hr>80070002</hr>
<errorinfo></errorinfo>
</entry>
我们的Visual Studio版本是: Microsoft Visual Studio企业版2017 版本15.5.1
由于公司政策,我们无法更新到最新更新。
答案 3 :(得分:0)
断开与Internet的连接并安装Qt vsaddin 2.2.2,然后运行VS2017,转到“工具”>“扩展和更新”>选择“ Qt Visual Studio工具”>然后取消选中“自动更新此扩展”。