Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-662

Wrong order of properties in VisualStudio2019 xml project files for projects created with the VS-Qt-Extension

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 2.4.1
    • 2.3.4
    • Build-time integration
    • None
    • Windows
    • 99c64ac9834500eff969a77fddc2a81722964226

    Description

      • Create new Qt project using the Qt VS Tool
      • Add a property sheet to the project
      • Define a special "Output Directory"
      • Set the "Output Directory" of the project properties to "inherit" to use the defined value from the property sheet.

      I would expect to see the special output directory in the project but that does not work.

      The reason is a wrong order of the property entries in the xml file of the VS project. As a workaround you have to manually edit the xml-file after creation like stated here:

      https://developercommunity.visualstudio.com/content/problem/715154/unable-to-inherit-settings-for-output-path-from-a.html

       

      (Quoted from the link above)

      Msbuild evaluation depends on order of the defined properties and imports and vcxproj must have a specific structure for IDE to be able to edit it correctly https://docs.microsoft.com/en-us/cpp/build/reference/vcxproj-file-structure?view=vs-2019

      The repro project does not have the expected structure which makes properties and imports to be in the wrong order. The first PropertyGroup without a Label (empty Label) must be after <ImportGroup Label="PropertySheets" and not before it for Property Pages and inheritance working correctly.

      Attachments

        Issue Links

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

          Activity

            People

              mecfc Miguel Costa
              ulli Ulli Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes