Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1569

Visual Studio Solutions are wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 1.16.0
    • None
    • Windows
    • 397d576fdeeb6b5982562ba8524b2fe09836c0e4 (qbs/qbs/master)

    Description

      Since the last update for Visual Studio 16.6 the solutions generated by Qbs no longer work.

      How to reproduce:

      • make a simple C++ Hello World example
      • Generate Visual Studio Solution
      • Open generated solution
      • Compile the example project

      Expected behaviour:

      • Qbs is invoked and the project is build

      Actual behaviour:

      • Error popup that something is wrong

      The reason is simply that Qbs generates entries for folder and file projects in GlobalSection(ProjectConfigurationPlatforms) of the solution file.

      Fix in "src/plugins/generator/visualstudio/visualstudiogenerator.cpp"
      Change line 223 from:

      const auto projects = solution->projects();
      

      To:

      const auto projects = solution->fileProjects();
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            arbmind Andreas Reischuck
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes