Home > Mobile >  Ask a question, to install the qt and under Windows vs2017 plug-in, create a simple GUI program comp
Ask a question, to install the qt and under Windows vs2017 plug-in, create a simple GUI program comp

Time:09-16

Error content is as follows:
Severity code shows the project file line prohibits display status
Error this compilation source file can be found in the following locations: "C: \ Users \ dell \ AppData \ Local \ Temp \ 84404214 - f7b3-47 AD - bb8ff3af7ff a543-1. TXT" QtGuiApplication1 C: \ Users \ dell \ AppData \ Local \ QtMsBuild \ qt_vars targets 246
Error MSB3758 compile-time error, c: \ Users \ dell \ AppData \ Local \ Temp \ girthkcd 0. Cs (88, 26) : error CS1061: "System. Collections. Generic. IEnumerable" Does not contain the definition of "ToHashSet", and couldn't find the acceptable type for "System. Collections. Generic. IEnumerable" The first parameter to the method of extension "ToHashSet" (whether or not the lack of a using directive or assembly reference?) QtGuiApplication1 C: \ Users \ dell \ AppData \ Local \ QtMsBuild \ qt_vars targets 246
From assembly error MSB4175 failed to "C: \ Program Files \ Microsoft Visual Studio (x86) \ 2017 \ \ Enterprise MSBuild \ 15.0 \ Bin \ Microsoft Build. The Tasks. The Core. The DLL" factory "CodeTaskFactory" loading Tasks, task factory must to "TaskType" property returns a value, QtGuiApplication1 C: \ Users \ dell \ AppData \ Local \ QtMsBuild \ qt_vars targets 246

CodePudding user response:

Qt is 5.9.2 version

CodePudding user response:

A friend had a similar problem, weekend again for so long, I still can't solve

CodePudding user response:

Have a suspicion that your project is a c # project? Or your Qt plug-ins have what problem? How is the c # related to an error error? The lack of System. Linq
https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.tolist? Redirectedfrom=MSDN& View=netframework 4.8 # System_Linq_Enumerable_ToList__1_System_Collections_Generic_IEnumerable___0__

CodePudding user response:

I have appeared in the relevant issues; Haven't solve, online to replace document tried to know never

CodePudding user response:

Others say is a plug-in version of the problem

CodePudding user response:

Match a picture, not figure don't know what circumstance,

CodePudding user response:

CodePudding user response:

Resolved vs2017 + Qt5.12.0 can only download the qt - vsaddin - msvc2017-2.2.2. Vsix, lower version didn't try, other later there will be a problem

CodePudding user response:

ToHashSet to.net 4.7.2 version to support above, after downloading can solve the problem,

Note: available in VS - help - check the.net framework version of Microsoft Visual Studio interface,
  •  Tags:  
  • Qt
  • Related