"Cannot open include file", even after including in Build.cs

Hey folks. I’d like to use functions from “ContentBrowser.h” / “ContentBrowser.cpp”. My understanding* is that to do this, I just need to put “ContentBrowser” in my Build.cs file. So I put it in there:

PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”,“ContentBrowser” });

And it compiles. However, when I put “#include “ContentBrowser.h”” in a class, the compiler says “cannot open include file”, “no such file or directory”. “Refresh visual studio project” failed to do anything.

(Am I right in thinking that I’ve got to run “GenerateProjectFiles.bat”? But how does that script get access to my particular project’s build.cs file?)

*from this for example A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Hi, hamishtodd1 try this

#include "Editor/ContentBrowser/Public/ContentBrowserModule.h"