none
Error while compiling QT program in Visual Studio 2015 com edn. RRS feed

  • Question

  • I get the following error:

    1>------ Build started: Project: analogclock, Configuration: Debug Win32 ------
    1>  Generate moc_predefs.h
    1>  Reading Qt configuration (C:\Qt\Qt5.8.0\5.8\msvc2015\bin\qmake.exe)
    1>C:\Users\Dan\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error : The source file for this compilation can be found at: "C:\Users\Dan\AppData\Local\Temp\a7b97cf6-8bae-46c1-a641-e713095be07e.txt"
    1>C:\Users\Dan\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB3758: An error has occurred during compilation. c:\Users\Dan\AppData\Local\Temp\zfktvjfl.0.cs(88,26) : error CS1061: 'System.Collections.Generic.IEnumerable<string>' does not contain a definition for 'ToHashSet' and no extension method 'ToHashSet' accepting a first argument of type 'System.Collections.Generic.IEnumerable<string>' could be found (are you missing a using directive or an assembly reference?)
    1>C:\Users\Dan\AppData\Local\QtMsBuild\qt_vars.targets(246,5): error MSB4036: The "GetVarsFromMakefile" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Program Files\MSBuild\14.0\bin" directory.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Please give me solution to this problem

    Wednesday, November 27, 2019 9:36 AM

All replies

  • Hi Dan,

    Welcome to MSDN forum.

    According to this error, please check if the "ToHashSet" method is being used normally, you could refer more details: Enumerable.ToHashSet Method 

    Then you could restart the visual studio and clean your project to see if it could build normally.

    If it persists, could you please share a sample contains "ToHashSet" method? Then we will test it on my side.

    Any feedback will be expected.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, November 28, 2019 7:54 AM