Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2430

Make it explicit that the canonical replacement for Visual Studio .sln files are SUBDIRS .pro files, not Session.

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 2.1.0
    • None
    • Documentation
    • None
    • beb4af4bce091da04b1f6e6deb307c4e7942d2ee, bb543b32a37f110b040e3a3b68a7eb45a01b8740

    Description

      From the webform feedback, maybe the response can be incorporated somehow
      into the "Managing Sessions" page:

      > Why doesn't Qt have solution files like Visual Studio?

      Because Visual Studio solution files only provide a two-layer hierarchy.
      This is too limiting for large projects made of large structured components.

      > If you have an application that depends on several libraries (each
      > one in its own project), the only option you have is to use the
      > Session feature which isn't exportable between developers.

      That's not the only option. Another option (and the right one to use)
      in this case is to use a "SUBDIRS" .pro file, i.e. something like

      TEMPLATE = subdirs

      SUBDIRS = plugin_coreplugin \
      ...\
      /some/other/profile.pro

      Dependencies can be set up there, but is a bit tricky. That's why
      the next version (and current git master branch) will contain a
      wizard to help with that task.

      A Qt Creator "Session" is really just a temporary collection of projects
      (including e.g. SUBDIRS projects) that a developer works on. It
      is "personal", not meant to be shared, and not supposed to reflect
      project structure. It contains "personal" data like bookmarks and
      breakpoints that are usually not of interest to other developers
      working at the same project(s).

      > In an ideal world, Qt would allow the user to create a .sln file
      > that stores project dependency information using relative paths
      > like Visual Studio does.

      We just call it a "SUBDIRS .pro" file.

      > Also, the .sln (or equiv) file could be checked into source control like
      > the .pro file so that someone else could check out the entire source
      > tree and simply open up the .sln file in qtcreator and all of the
      > referenced projects (and their dependency information) would be
      > read in (again just like Visual Studio).

      The SUBDIRS .pro file can be checked in as a VS .sln file. We use it
      ourselves, nested over several levels, in the Qt Creator sources and
      for Qt itself.

      Attachments

        Issue Links

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

          Activity

            People

              leenam Leena Miettinen
              hjk hjk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes