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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1 (rev.15)
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None
    • Environment:
      Visual studio extension
    • Platform/s:
      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

            Assignee:
            mecfc Miguel Costa
            Reporter:
            videoredo videoredo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes