Important: Please read the Qt Code of Conduct -

How can I set QtMsBuild macro in GitHub workflow?

  •     # Steps represent a sequence of tasks that will be executed as part of the job
        # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
        - name: Checkout
          uses: actions/checkout@v2
        - name: Create QtCache
          id: cache-qt
          uses: actions/cache@v1
            path: ../Qt
            key: ${{ runner.os }}-QtCache
        - name: Install Qt
          uses: jurplel/install-qt-action@v2
            version: '5.14.0'
            #cached: ${{ steps.cache-qt.outputs.cache-hit }}
        - name: Add MSBuild to PATH
          uses: microsoft/setup-msbuild@v1
        - name: Restore NuGet packages
          working-directory: ${{env.GITHUB_WORKSPACE}}
          run: nuget restore ${{env.SOLUTION_FILE_PATH}}
        - name: Build
          working-directory: ${{env.GITHUB_WORKSPACE}}
          # Add additional options to the MSBuild command line here (like platform or verbosity level).
          # See
          run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

    While build process I am getting this error.
    Is there any way to solve this error using msbuild.exe? (I am getting this issue in GitVirtual environment not in local system.)
    project is work fine in my local system.

    QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.