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

If ObjectFileName = $(IntDir)/%(RelativeDir)/ msbuild fails because some folders are missing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 2.3.2
    • 2.3.1
    • None
    • Visual Studio Version: 2017 Professional 15.9.4
      Qt version: 5.11.0
      Integration Type: Qt/MSBuild
    • Windows
    • 10961ecb86d7688f3eb7fb782f7d38affef2aa09

      I have a qt project with the code divided in multiple subfolders
      I use $(IntDir)/%(RelativeDir)/ for the ObjectFileName so the .obj file are kept in the same relative directory as the originals .cpp files.

      I need to do this because my collegues use the same file name in different folders so the default ObjectFileName value create name conflicts.
      See: https://stackoverflow.com/questions/3729515/visual-studio-2010-2008-cant-handle-source-files-with-identical-names-in-diff/3731577

      This has always worked without a problem until the last update to the 2.3.1 VS Tools.
      If I update to 2.3.1 the Target MakeDirsForCl defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets" is not executed and so the intermediate folder needed are not created.
      The build will then file as soon as it has to save an .obj file to the disk because the folder is missing.

      If I revert back to the version 2.2.2 everything works.

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

            mecfc Miguel Costa
            pscamodio-87 Amodio Pesce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes