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

Converting project to Qt/MSBuild and get QtMsBuild: could not locate qt.targets, qt.props

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 2.2.0
    • General
    • None

    Description

      Unable to build using msbuildusing the command line. The same issue was mentioned in the comments section: http://blog.qt.io/blog/2018/02/26/qt-visual-studio-tools-2-2-0-released/#comment-1202463

      I use ant scripts basically calling MSBuild and the output was that QtMsBuild cannot locate qt.target, qt.props

      compile:
           [echo] Compiling Release ..............
           [echo] MSBUILD2017_EXE  = C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
      
      bootstrap:
      
      compile-with-msbuild:
           [echo] Executing C:/Windows/Microsoft.NET/Framework/v4.0.30319/C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe C:\BuildAgent\TDM\MyAppMasterDev/MyApp.sln /p:Configuration=Release /p:SolutionDir=C:\BuildAgent\TDM\MyAppMasterDev/ /p:Platform="x64"
           [exec] Microsoft (R) Build Engine version 15.6.85.37198 for .NET Framework
           [exec] Copyright (C) Microsoft Corporation. All rights reserved.
           [exec]
           [exec] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
           [exec] Build started 4/5/2018 8:24:23 AM.
           [exec] Project "C:\BuildAgent\TDM\MyAppMasterDev\MyApp.sln" on node 1 (default targets).
           [exec] ValidateSolutionConfiguration:
           [exec]   Building solution configuration "Release|x64".
           [exec] Project "C:\BuildAgent\TDM\MyAppMasterDev\MyApp.sln" (1) is building "C:\BuildAgent\TDM\MyAppMasterDev\MyApp\MyApp.vcxproj.metaproj" (2) on node 1 (default targets).
           [exec] Project "C:\BuildAgent\TDM\MyAppMasterDev\MyApp\MyApp.vcxproj.metaproj" (2) is building "C:\BuildAgent\TDM\MyAppMasterDev\OptimiserLib\OptimiserLib.vcxproj" (3) on node 1 (default targets).
           [exec] InitializeBuildStatus:
           [exec]   Touching "x64\Release\OptimiserLib.tlog\unsuccessfulbuild".
           [exec] QtMsBuildNotFound:
           [exec]   QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.
      

      PS: Tried searching for this defect if it was logged but couldn't find it. Sorry if this is raised already.

      Attachments

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

        Activity

          People

            mecfc Miguel Costa
            vivlobo Vivian Lobo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes