Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Creating a new Qt project with Qt VS Tools on Visual Studio 2019 throws a project error



  • I have installed several versions of Qt VS Tools including the most recent, 2.20, 2.51, and others. With the latest version, the extension crashed when I added a new Qt version in the extension's options. I went with an older version and I could finally add Qt versions. Here is a picture of the settings. Image of Qt Versions in Qt VS Tools extension Whenever I create a new Qt project in VS 2019, I get this error:

    The following error occurred: Error reading VS project settings
    

    Currently, the extension is at version 2.5.2.1. I would try to change the type of compiler in the project, but it doesn't generate a project to begin with.
    What can I do to solve this?

    Other information:
    VS 2019 v 16.7.0
    VSI v 2.7.3061.716
    Qt VS Tools v 2.5.2.1
    VS2019 Install Config:

    {
      "version": "1.0",
      "components": [
        "Microsoft.VisualStudio.Component.CoreEditor",
        "Microsoft.VisualStudio.Workload.CoreEditor",
        "Microsoft.NetCore.Component.Runtime.3.1",
        "Microsoft.NetCore.Component.SDK",
        "Microsoft.VisualStudio.Component.NuGet",
        "Microsoft.Net.Component.4.6.1.TargetingPack",
        "Microsoft.VisualStudio.Component.Roslyn.Compiler",
        "Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
        "Microsoft.VisualStudio.Component.FSharp",
        "Microsoft.NetCore.Component.DevelopmentTools",
        "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions",
        "Microsoft.Net.Component.4.8.SDK",
        "Microsoft.Net.Component.4.7.2.TargetingPack",
        "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites",
        "Microsoft.VisualStudio.Component.TypeScript.3.9",
        "Microsoft.VisualStudio.Component.JavaScript.TypeScript",
        "Microsoft.VisualStudio.Component.JavaScript.Diagnostics",
        "Microsoft.Component.MSBuild",
        "Microsoft.VisualStudio.Component.TextTemplating",
        "Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime",
        "Microsoft.VisualStudio.Component.Common.Azure.Tools",
        "Microsoft.VisualStudio.Component.SQL.CLR",
        "Microsoft.VisualStudio.Component.ManagedDesktop.Core",
        "Microsoft.Net.Component.4.5.2.TargetingPack",
        "Microsoft.Net.Component.4.5.TargetingPack",
        "Microsoft.VisualStudio.Component.IntelliCode",
        "Microsoft.Net.Component.4.TargetingPack",
        "Microsoft.Net.Component.4.5.1.TargetingPack",
        "Microsoft.Net.Component.4.6.TargetingPack",
        "Microsoft.Net.ComponentGroup.TargetingPacks.Common",
        "Microsoft.Net.Core.Component.SDK.2.1",
        "Microsoft.VisualStudio.Component.DiagnosticTools",
        "Microsoft.VisualStudio.Component.EntityFramework",
        "Microsoft.VisualStudio.Component.WebDeploy",
        "Component.Microsoft.VisualStudio.LiveShare",
        "Microsoft.Component.PythonTools",
        "Microsoft.Component.PythonTools.Miniconda",
        "Microsoft.Component.PythonTools.Web",
        "Microsoft.VisualStudio.Component.VC.CoreIde",
        "Microsoft.VisualStudio.Component.Windows10SDK",
        "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
        "Microsoft.VisualStudio.Component.Graphics.Tools",
        "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
        "Microsoft.VisualStudio.Component.Windows10SDK.18362",
        "Microsoft.ComponentGroup.PythonTools.NativeDevelopment",
        "Component.CPython3.x64",
        "Microsoft.VisualStudio.Workload.Python",
        "Microsoft.VisualStudio.Component.Node.Tools",
        "Microsoft.VisualStudio.Workload.Node",
        "Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites",
        "Microsoft.ComponentGroup.Blend",
        "Microsoft.VisualStudio.Component.Debugger.JustInTime",
        "Microsoft.VisualStudio.Component.DotNetModelBuilder",
        "Microsoft.VisualStudio.Workload.ManagedDesktop",
        "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
        "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core",
        "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake",
        "Microsoft.VisualStudio.Component.VC.CMake.Project",
        "Microsoft.VisualStudio.Component.VC.ATL",
        "Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest",
        "Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest",
        "Microsoft.VisualStudio.Component.VC.ATLMFC",
        "Microsoft.VisualStudio.Component.VC.CLI.Support",
        "Microsoft.VisualStudio.Component.VC.ASAN",
        "Microsoft.VisualStudio.Component.VC.Modules.x86.x64",
        "Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset",
        "Microsoft.VisualStudio.Component.VC.Llvm.Clang",
        "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang",
        "Component.IncredibuildMenu",
        "Component.Incredibuild",
        "Microsoft.VisualStudio.Component.Windows10SDK.17763",
        "Microsoft.VisualStudio.Component.Windows10SDK.17134",
        "Microsoft.VisualStudio.Component.Windows10SDK.16299",
        "Microsoft.VisualStudio.Component.VC.v141.x86.x64",
        "Microsoft.Component.VC.Runtime.UCRTSDK",
        "Microsoft.VisualStudio.Component.VC.140",
        "Microsoft.VisualStudio.Workload.NativeDesktop",
        "Component.OpenJDK",
        "Microsoft.VisualStudio.Component.MonoDebugger",
        "Microsoft.VisualStudio.Component.Merq",
        "Component.Xamarin.RemotedSimulator",
        "Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.TemplateEngine",
        "Component.Xamarin",
        "Component.Android.SDK28",
        "Microsoft.VisualStudio.Workload.NetCrossPlat",
        "Microsoft.VisualStudio.Workload.NativeGame",
        "Component.MDD.Linux",
        "Component.Linux.CMake",
        "Microsoft.VisualStudio.Workload.NativeCrossPlat"
      ]
    }