LaVOZs

The World’s Largest Online Community for Developers

'; Unable to create C++ projects in Visual Studio 2019: Object reference not set to an instance of object - LavOzs.Com

Recently I had to reinstall VS2019, but I am unable to create any kinds of C++ projects. Selecting a template and clicking on Create gives an "Object reference not set to an instance of object" error. It creates the folder and .vs subfolder but no .sln file. I tried reinstalling the IDE, reinstalling it to the default location, clearing everything VS related and reinstalling it again, but I get the same error. This problem only occurs with C++ projects as I can create and build C# projects.

Related
Examples of creating a simple COM component using C++ in Visual Studio 2008
Unable to create/open C++ project in Visual Studio 2015 Community RTM
Visual Studio 2015 Community - 'Visual C++ Project System Package' error
Visual Studio Failing to Create C++ Console Project
Visual Studio 2019 intellisense shows red squiggles under every single namespace that is not a .NET one
Visual Studio Community 2019 creates a project but cannot open the project it created?