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

$(SolutionDir) is evaluated wrongly when reading project files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 2.7.1
    • Build-time integration
    • None
    • 5a34dfd2299dbe7c4c5cf80c68d8ec571f0008af (qt-labs/vstools/dev)

    Description

      Project files that import props files from paths including $(SolutionDir) result in background build errors like these:

      MyProjectFile.vcxproj: background build ERROR: The imported project "C:\MSVCProj\MyProjectFile\MySolution.props" was not found. Confirm that the expression in the Import declaration "C:\MSVCProj\MyProjectFile\MySolution.props" is correct, and that the file exists on disk.  C:\MSVCProj\MyProjectFile.vcxproj
      

      The import declaration is as follows:

      <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
        <Import Project="$(SolutionDir)MySolution.props" />
      </ImportGroup>
      

      The props file exists in the Solution directory, but Qt VS Tools is looking in the Project directory instead.

      It seems that Qt VS Tools is using the project directory instead of the solution directory for this background build task.

      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
              rthompson Richard Thompson
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes