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

The extension doest not compile with VS22 Preview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 3.3.0
    • None
    • Windows

    Description

      I have Visual Studio 2022 and 2022 Preview, i'm not sure why is it trying to compile using the Preview version.

      Here's how im calling it:

       

      Microsoft Windows [Version 10.0.19045.4780]
      (c) Microsoft Corporation. All rights reserved.
      C:\Users\CAIO>cd C:\Users\CAIO\source\repos
      C:\Users\CAIO\source\repos>git clone git://code.qt.io/qt-labs/vstools.git
      Cloning into 'vstools'...
      remote: Enumerating objects: 22450, done.
      remote: Counting objects: 100% (19946/19946), done.
      remote: Compressing objects: 100% (7587/7587), done.
      remote: Total 22450 (delta 15692), reused 15199 (delta 11789), pack-reused 2504
      Receiving objects: 100% (22450/22450), 6.88 MiB | 3.46 MiB/s, done.
      Resolving deltas: 100% (17071/17071), done.
      C:\Users\CAIO\source\repos>set QTBUILD_STATIC_VS2022=C:\Qt\Qt-5.15.9
      C:\Users\CAIO\source\repos>cd vstools
      C:\Users\CAIO\source\repos\vstools>vstools -init -startvs
      
      ...
      
      ################################################################################
      ## Visual Studio Professional 2022 PREVIEW (17.12.35323.107)                  ##
      ## MSBuild v17.12.0.42607 (x64)                                               ##
      ## Qt VS Tools version: 3.3.0 (rev.5)                                         ##
      ################################################################################################################################################################
      ## Deleting output files...                                                   ##
      ################################################################################################################################################################
      ## Logging extension version                                                  ##
      ## 3.3.0 (rev.5)                                                              ##
      ################################################################################################################################################################
      ## Restoring packages...                                                      ##
      ################################################################################
      
      ...
      
      C:\Users\CAIO\source\repos\vstools\Tests\Test_QtMsBuild.Build\Test_QtMsBuild.Build.csproj : error NU1102: Unable to fin d package Microsoft.Build with version (>= 17.12.0) [C:\Users\CAIO\source\repos\vstools\vstools.sln]
      
      ...
      
      ################################################################################ ## ERROR restoring packages!                                                  ## ################################################################################
      C:\Users\CAIO\source\repos\vstools>
      

      Compile errors full log: log.txt

      Attachments

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

        Activity

          People

            ali.demiralp Ali Can Demiralp
            cesa caio cesar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes