I want to add an ArcGIS Pro Gallery to my project, but after naming it only a cs file is created, but no template xaml file, and the gallery isn't reflected in the config daml file either. I also checked and it is not only the gallery, it is any item from the ArcGIS Pro Add-ins group.
Instead I receive this error message

In addition I got this error message when trying to add ArcGIS Pro DAML IDs

How can I get full functionality back in my project?
I am using Visual Studio in version 17.3.3 with ArcGIS Pro SDK for .NET version 3.0.0.3656. The project was migrated from an 2.9 project.