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

Problem in qt_defaults.props with $QtBuildConfig when project name isn't "debug" or "release"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 2.7.1 (rev.15)
    • Build-time integration
    • None
    • Visual studio extension
    • Windows

    Description

      The property file: qt_defaults.props sets AND overrides the property $QtBuildConfig based on the condition: Condition="'$(Configuration)' == 'debug'.  When $(Configuration) == 'debug' then $QtBuildConfig is set to 'debug" otherwise it's set to 'release".  The problem is when the $(Configuration) is not debug, but the project is still a debug project.

      Was able to fix this by changing the following lines in qt_defaults.props:

      // code placeholder
          <!--// Qt build config -->
          <QtBuildConfig Condition="'$(Configuration)' == 'Debug'">debug</QtBuildConfig>
          <QtBuildConfig Condition="'$(QtBuildConfig)' == ''">release</QtBuildConfig>
      
      

      However, each time the VSTools extension is used to create a new project, qt_defaults.props is rebuilt.  

       

       

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            videoredo videoredo
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes