Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3234

qmake generates "unrecognized version" sln files for Visual Studio

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.4.3
    • Build tools: qmake
    • None
    • Windows, Visual Studio

      It seems the qmake generated sln file does not conform and is not recognized as a Visual Studio 9.00 (2005) solution file.

      Replace:
      msvc_vcproj.cpp,271: const char _slnHeader80[] = "Microsoft Visual
      Studio Solution File, Format Version 9.00";

      with
      const char _slnHeader80[] = "Microsoft Visual Studio Solution File,
      Format Version 9.00\n# Visual Studio 2005";

      The added line is just a comment, but important if we want the file to be recognized as a Visual 9.0 file, and opened by the appropriate Visual Studio version.

      This issue also applies to more recent Visual Studio versions.

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

            stormols Marius Storm-Olsen
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes