Details
Description
Issue
- Install Qt VS Tools in VS 2019 (16.2.1) for the first time.
- Create a new Project > Qt Console Application
- Fill in the project details under "Configure your new project"
- Click "Create"
This produces a cryptic and unhelpful error message, "Object reference not set to an instance of an object."
Solution
Go to Extensions > Qt VS Tools > Qt Options, and add a valid Qt Version.
After that, repeating the steps above will allow the project configuration to proceed normally.
Suggestion
Rather than the cryptic message, show a more informative message like "No Qt versions have been configured in Visual Studio yet. Go to Extensions > Qt VS Tools > Qt Options to add a version."