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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: Qt/MSBuild
    • Labels:
      None

      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

              Assignee:
              mecfc Miguel Costa
              Reporter:
              rthompson Richard Thompson
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes