UE .h files c++ paths cannot be found, cannot compile , cannot rebuild

I updated my VS C++ project, because I added some plugins that I needed in code, but this resulted in a catastrophic error.

Eg. in VS 2022:

cannot open source file “CoreMinimal.h”
cannot open source file “Modules/ModuleManager.h”

But my Build.cs file seems to be unchanged.

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

How can I fix this?

The problem seems to have been caused by a plugin (Fmod) installing to /Engine/Plugins, not to /Engine/Plugins/Marketplace, as seems to be the requirement for 5.x plugins.

Hi, hello, I have encountered the same problem, I will copy the plug-in in other projects to recompile, all the.h file path is lost, may I ask you to solve this problem?