Can't open project after adding C++ class to blueprint project

How did you add the C++ Class?

You might need to generate the visual studio files and compile Development Editor to run the project in the Editor.

I often add new C++ Class’s form the Editor because it puts them in the right place and generates the header file, but it is not necessary you can do it form Visual Studio also. But, you will need to right click the project file and run generate files and compile to open it in the Editor.