无法在Visual Studio 2017中使用QT

Jia*_* Lu 1 c++ qt

我已经安装了'qt-vsaddin-msvc2017-2.3.0'以在Visual Studio 2017中使用QT,但是安装后存在一些问题。第一件事是我无法在Qt VS Tools中修改QT项目设置,因为它是灰色的。重新启动VS后,它一直显示“ Qt Visual Studio工具版本2.3.2:正在初始化...”,并且没有继续。安装qt-vsaddin时会错过什么吗? 在此处输入图片说明 在此处输入图片说明

Chr*_*ris 5

Answering this question a bit late because I ran into this problem myself today. The problem is your VS2017 is not up to date -- You need at least version 15.8; currently 15.9 is released. Odds are your ActivityLog.xml looks similar to Pavel Celba's answer here in which it's having trouble loading a specific version of the Microsoft.VisualStudio.Threading assembly. In order to fix the issue, you're going to have to do one of two things:

  1. Update your Visual Studio Community/Professional/Enterprise to the latest version.
  2. Downgrade your version of the Qt vsaddin to 2.2.2. You can obtain the 2.2.2 release, here. If you need a previous version because your version is even earlier, go to the parent directory of that link.

一旦安装了2.2.2或获得了Visual Studio 15.9更新,它应该可以正常工作。

我也遇到了这个问题,因为我的VS版本是15.4,但是我无法连接到该计算机上的Internet。