VS dont see basic engine source files

I have just created a new project and written a new C++ class, but I am getting an errors "cannot open source file ‘…’ . I have installed all the necessary VS extensions, rebuilt the project, created new projects, but nothing seems to work. I have also searched online for a solution, but have not found anything that helps.

Try checking your project’s <projectname>Build.cs, found in the Source/<projectname>/ folder. I had a similar issue and added "Engine" to the PublicDependencyModuleNames, followed by regenerating the VS project files. This might not be the “correct” way to solve this issue, but it certainly worked for me.

1 Like